This is the mail archive of the java-discuss@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: .java to binary compilation problem


Fredrik Warg wrote:
>     public boolean func() { spec.harness.Context.out.println( "Yo!"); }

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.

-- 
Jeff Sturm
jsturm@sigma6.com

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]