This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
Re: .java to binary compilation problem
- To: Jeff Sturm <jsturm at sigma6 dot com>
- Subject: Re: .java to binary compilation problem
- From: Per Bothner <per at bothner dot com>
- Date: 01 Nov 1999 11:33:02 -0800
- Cc: java-discuss at sourceware dot cygnus dot com, warg at ce dot chalmers dot se
- References: <381DF459.ED02C9@sigma6.com>
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/