.java to binary compilation problem
Per Bothner
per@bothner.com
Mon Nov 1 11:33:00 GMT 1999
Jeff Sturm <jsturm@sigma6.com> writes:
> gcj seems to have trouble with ambiguous syntax, like member names vs.
> subpackages. Try shortening this to:
>
> public boolean func() { Context.out.println( "Yo!"); }
>
> and use an explicit import:
>
> import spec.harness.Context;
>
> Let us know if that compiles.
I hope not. I'm fairly sure that is not valid Java.
Check 6.5.3.1 in the JLS. It says "top-level package".
"Context" is not a "top-level package".
--
--Per Bothner
per@bothner.com http://www.bothner.com/~per/
More information about the Java
mailing list