java.lang.Error running build from ecj compiler

Deneau, Tom tom.deneau at amd.com
Thu Mar 20 22:03:40 UTC 2014


OK, anyway it is not a blocking issue for me as I can build and run with javac after finding all the warnings.

-- Tom

> -----Original Message-----
> From: Doug Simon [mailto:doug.simon at oracle.com]
> Sent: Thursday, March 20, 2014 4:03 PM
> To: Deneau, Tom
> Cc: graal-dev at openjdk.java.net; Gilles Duboscq
> Subject: Re: java.lang.Error running build from ecj compiler
> 
> I'm not sure what's going as I tried your steps (using ecj-4.3.2.jar)
> and never got that error when running the HSAIL unit tests.
> 
> On Mar 20, 2014, at 8:52 PM, Deneau, Tom <tom.deneau at amd.com> wrote:
> 
> > Widening beyond just Doug and Gilles...
> >
> > I was cleaning up warnings from a webrev using the following sequence:
> > (My webrev was based off of 5f5e2711dc24 although I'm not sure that
> > matters)
> >
> >
> > mx clean
> > mx eclipseinit      # has a side effect of preparing the annotation
> processor jars
> > mx build --vm server --vmbuild product --jdt /path/to/ecj-4.3.2.jar
> > --jdt-warning-as-error mx checkstyle repeat build...
> >
> >
> > So eventually I got a build with no compiler errors or warnings.
> > Then I wanted to run our junit tests, I used the ecj produced
> > bytecodes and I got
> >
> >
> > java.lang.Error: Unresolved compilation problem:
> > 	The method getId() from the type Node is deprecated
> >
> > 	at
> com.oracle.graal.phases.common.GuardLoweringPhase$LowerGuards.lowerToIf(
> GuardLoweringPhase.java:153)
> > 	at
> com.oracle.graal.phases.common.GuardLoweringPhase$LowerGuards.processNod
> e(GuardLoweringPhase.java:144)
> > 	at
> com.oracle.graal.phases.graph.ScheduledNodeIterator.processNodes(Schedul
> edNodeIterator.java:63)
> > 	at
> com.oracle.graal.phases.common.GuardLoweringPhase.processBlock(GuardLowe
> ringPhase.java:200)
> > 	at
> com.oracle.graal.phases.common.GuardLoweringPhase.run(GuardLoweringPhase
> .java:188)
> > 	at
> > com.oracle.graal.phases.common.GuardLoweringPhase.run(GuardLoweringPha
> > se.java:1)
> >
> > I went back and did a javac build using
> >   mx clean
> >  mx build --vm server --vmbuild product
> >
> > This javac build ran the junits fine.
> >
> > I can see that Node.getId() was indeed marked @Deprecated, and that
> > GuardLoweringPhase had a @SuppressWarnings("deprecation") before it's
> > call to getId()
> >
> > Is this just because --jdt-warning-as-error is fighting against
> @SuppressWarnings here or it this a problem in the ecj compiler?
> >
> > -- Tom
> 




More information about the graal-dev mailing list