public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* java/1294: gcj does not complain about abstract classes
@ 2000-12-20 12:24 osk
  0 siblings, 0 replies; only message in thread
From: osk @ 2000-12-20 12:24 UTC (permalink / raw)
  To: java-gnats

>Number:         1294
>Category:       java
>Synopsis:       gcj does not complain about abstract classes
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    tromey
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 20 12:18:48 PST 2000
>Closed-Date:    Sat Jul 01 14:40:35 PDT 2000
>Last-Modified:  Sat Jul  1 14:50:00 PDT 2000
>Originator:     Oskar Liljeblad
>Release:        unknown-1.0
>Organization:
>Environment:
Debian GNU/Linux
GNU libc 2.1.3
gcc 2.96 snapshot 20000612
libgcj snapshot 2000-06-18
>Description:
gcj compiles non-abstract java classes which contain
abstract methods without complaining.

-------------------------
$ cat >Test.java
abstract class Abstract {
  public abstract int abstractMethod();
}

class Concrete extends Abstract { }
^D
$ gcj -C Test.java
$ javac Test.java
Test.java:9: class Test must be declared abstract. It does not define int getSize() from class Component.
public class Test extends Component {
             ^
Test.java:19: class Test is an abstract class. It can't be instantiated.
                new Test();
                ^
2 errors
$ rm *.class
$ gcj -c Test.java
Test.java:2: warning: abstract method in non-abstract class
-------------------------

Note that 'gcj -c' warns about it.

Oskar Liljeblad (osk@hem.passagen.se)
>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:

Formerly PR gcj/273

Responsible-Changed-From-To: apbianco->tromey
Responsible-Changed-By: tromey
Responsible-Changed-When: Sat Jul  1 14:40:35 2000
Responsible-Changed-Why:
    I fixed it.
State-Changed-From-To: open->closed
State-Changed-By: tromey
State-Changed-When: Sat Jul  1 14:40:35 2000
State-Changed-Why:
    I'm closing this PR.
    I fixed this bug on June 24.
    Can you try a more recent snapshot?
    If you still see the bug tell me and I will reopen the PR.

From: tromey@cygnus.com
To: apbianco@cygnus.com, java-gnats@sourceware.cygnus.com,
  osk@hem.passagen.se, tromey@cygnus.com
Cc:  
Subject: Re: gcj/273
Date: 1 Jul 2000 21:40:35 -0000

 Synopsis: gcj does not complain about abstract classes
 
 Responsible-Changed-From-To: apbianco->tromey
 Responsible-Changed-By: tromey
 Responsible-Changed-When: Sat Jul  1 14:40:35 2000
 Responsible-Changed-Why:
     I fixed it.
 State-Changed-From-To: open->closed
 State-Changed-By: tromey
 State-Changed-When: Sat Jul  1 14:40:35 2000
 State-Changed-Why:
     I'm closing this PR.
     I fixed this bug on June 24.
     Can you try a more recent snapshot?
     If you still see the bug tell me and I will reopen the PR.
 
 http://sourceware.cygnus.com/cgi-bin/gnatsweb.pl?cmd=view&pr=273&database=java
>Unformatted:



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-12-20 12:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-20 12:24 java/1294: gcj does not complain about abstract classes osk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).