public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* gcc java bug
@ 2000-08-10 16:43 Vladislav Malyshkin
  0 siblings, 0 replies; only message in thread
From: Vladislav Malyshkin @ 2000-08-10 16:43 UTC (permalink / raw)
  To: gcc-bugs

gcc --version
2.96
(RedHat 7.0 Public Beta)

gcc java does not understand
static variables in inner class.
gcj Y.java Y2.java -o x --main=Y2
Y2.java: In class `Y2':
Y2.java: In method `main(java.lang.String[])':
Y2.java:4: No variable `UU' defined in type `Y'.
  System.err.println(Y.UU.V);
                      ^
1 error



 cat Y2.java
class Y2 {
 public static void main(String [] args)
 {
  System.err.println(Y.UU.V);
 }
}


cat Y.java
public class Y {
public static class UU {
 public static final String V="V";
}
public static void main(String [] args)
{
 System.err.println(Y.UU.V);
}
}




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

only message in thread, other threads:[~2000-08-10 16:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-08-10 16:43 gcc java bug Vladislav Malyshkin

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