public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/17691] New: error on valid java code from freenet
@ 2004-09-27 12:36 ruben at ugr dot es
  2004-09-27 12:38 ` [Bug java/17691] " ruben at ugr dot es
                   ` (6 more replies)
  0 siblings, 7 replies; 9+ messages in thread
From: ruben at ugr dot es @ 2004-09-27 12:36 UTC (permalink / raw)
  To: java-prs

>cat a.java

class A {
int x (){
return 0;
}
}
class B extends A {
int y(){
B.super.x();
return 0;
}
}

>javac a.java
#no error

>gcj a.java
a.java:8: error: '(' expected.
   B.super.x();
          ^
1 error

I know it is not good to use another compiler to check for validity of code.
Nevertheless, I looked this up and it is valid code according to Sun.
I can't find the reference now.
The super in this example is redundant, but it wouldn't be if B had an x() method.

The errors are the same in either case.

This is needed to compile freenet/crypt/ThrottledAsyncEntropyYarrow.java

Please check

-- 
           Summary: error on valid java code from freenet
           Product: gcc
           Version: 3.4.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ruben at ugr dot es
                CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
                    dot org
 GCC build triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17691


^ permalink raw reply	[flat|nested] 9+ messages in thread
[parent not found: <bug-17691-6429@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2007-01-09 20:49 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-27 12:36 [Bug java/17691] New: error on valid java code from freenet ruben at ugr dot es
2004-09-27 12:38 ` [Bug java/17691] " ruben at ugr dot es
2004-09-27 12:39 ` ruben at ugr dot es
2004-09-27 13:27 ` pinskia at gcc dot gnu dot org
2004-09-27 22:14 ` mark at gcc dot gnu dot org
2004-09-28  9:10 ` ruben at ugr dot es
2004-09-28  9:13 ` ruben at ugr dot es
2004-09-29 22:44 ` mark at gcc dot gnu dot org
     [not found] <bug-17691-6429@http.gcc.gnu.org/bugzilla/>
2007-01-09 20:49 ` tromey at gcc dot gnu dot org

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).