GCJ allows classes in named packages to see classes in unnamed packages. For example: ---- ./Snafu.java ---- public class Snafu { } ---------------------- ---- ./foo/Bar.java ---- package foo; // import Snafu; public class Bar { Snafu junk; } ------------------------ Note that GCJ accepts the code in "foo/Bar.java" with or without the line commenting out the import declaration. Both Jikes 1.22 and Sun's JDK 1.5.0_05 reject this code.
Confirmed.
All gcj front end bugs have been fixed by the gcj-eclipse branch merge. I'm mass-closing the affected PRs. If you believe one of these was closed in error, please reopen it with a note explaining why. Thanks.