Michael Mehrle schrieb:
> I am suddenly experiencing a strange error when compiling my project (see
> stack trace below) - the maven compile plugin crashes and then refers to
> some compiler error which cannot be parced. It even asks me to submit a bug
> report with the JDC - never encountered anything like this in 12 years of
> Java coding.
>
> Strangely - my Eclipse IDE using the *same* JRE (1.5.0.13) is able to
> compile the very same code without any problems. But as soon as I try to do
> it with maven (in and outside of Eclipse) I get this error). This is
> happening on Linux and OS X.
>
> ANY input would be appreciated - this has put our entire project on hold for
> an entire day - we have no idea how to fix this.
>
> Stack trace:
>
> [INFO] [compiler:compile]
> [INFO] Compiling 455 source files to
> /Users/michael/test/trunk/target/classes
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Compilation failure
> Failure executing javac, but could not parse the error:
> An exception has occurred in the compiler (1.5.0_13). Please file a bug at
> the Java Developer Connection (http://java.sun.com/webapps/bugreport)  after
> checking the Bug Parade for duplicates. Include your program and the
> following diagnostic in your report.  Thank you.
> java.lang.NullPointerException
>         at com.sun.tools.javac.tree.TreeMaker.Ident(TreeMaker.java:413)
>         at com.sun.tools.javac.comp.Lower.access(Lower.java:956)
>         at com.sun.tools.javac.comp.Lower.access(Lower.java:1048)
>   

Eclipse does not compile code using Sun's compiler ("javac"); it has its
own entirely separate compiler implementation. It does not provide its
own JVM ("java") or java-standard-library implementation (rt.jar etc).

So it is no surprise to find that eclipse's compiler works where the sun
java compiler crashes (and vice versa).

This is just a sun javac bug that your code has triggered, and nothing
to do with Maven. This has happened to me half-a-dozen times in
half-a-dozen years.

See: http://en.wikipedia.org/wiki/Java_compiler

Regards, Simon



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to