projectlombok / lombok

Very spicy additions to the Java programming language.
https://projectlombok.org/
Other
12.86k stars 2.38k forks source link

Lombok breaks compination on AIX 6 machine with IBM Java #618

Closed lombokissues closed 9 years ago

lombokissues commented 9 years ago

Migrated from Google Code (issue 583)

lombokissues commented 9 years ago

:bust_in_silhouette: mkozioro   :clock8: Oct 03, 2013 at 08:47 UTC

Hello,

I have following problem on AIX 6 maching with java: Java(TM) SE Runtime Environment (build pap6460sr12-20121025_01(SR12)) IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 AIX ppc64-64 jvmap6460sr12-20121024_126067 (JIT enabled, AOT enabled) J9VM - 20121024_126067 JIT - r9_20120914_26057 GC - 20120928_AA) JCL - 20121014_01

JDK will be same version.

 [exec] An annotation processor threw an uncaught exception.
 [exec] Consult the following stack trace for details.
 [exec] java.lang.NullPointerException
 [exec]     at java.util.IdentityHashMap$IdentityHashMapEntry.setValue(IdentityHashMap.java:131)
 [exec]     at lombok.javac.apt.Processor.process(Processor.java:263)
 [exec]     at lombok.core.AnnotationProcessor$JavacDescriptor.process(AnnotationProcessor.java:117)
 [exec]     at lombok.core.AnnotationProcessor.process(AnnotationProcessor.java:167)
 [exec]     at com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:639)
 [exec]     at com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:568)
 [exec]     at com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:713)
 [exec]     at com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:999)
 [exec]     at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:739)
 [exec]     at com.sun.tools.javac.main.Main.compile(Main.java:365)
 [exec]     at com.sun.tools.javac.main.Main.compile(Main.java:291)
 [exec]     at com.sun.tools.javac.main.Main.compile(Main.java:282)
 [exec]     at com.sun.tools.javac.Main.compile(Main.java:99)

Version of Lombok: 0.12.0

I can't really give steps to reproduce and can't check if fix really works (I don't have access to AIX servers) but I hope it helps a little bit.

lombokissues commented 9 years ago

:bust_in_silhouette: mkozioro   :clock8: Oct 03, 2013 at 08:56 UTC

Long nextLevel = (i == priorityLevels.length - 1) ? null : priorityLevels[i + 1];

probably nextLevel is somehow null and IdentityHashMap doesn't allow null values. http://docs.oracle.com/javase/6/docs/api/java/util/IdentityHashMap.html

lombokissues commented 9 years ago

:bust_in_silhouette: askoning   :clock8: Oct 07, 2013 at 18:01 UTC

From the link you posted: "This class provides all of the optional map operations, and permits null values and the null key."

Furthermore I don't see an IdentityHashMapEntry class in the IdentityHashMap provided by my 1.6 and 1.7 JDKs (neither Oracle nor OpenJDK).

If downloading an IBM JDK would be easy I'd take a look at it, but it is a nightmare of redirections, registrations and other forms. I'm inclined to say we can't do much until we have a clear reproduction recipe and a working environment...

lombokissues commented 9 years ago

:bust_in_silhouette: askoning   :clock8: Oct 07, 2013 at 18:44 UTC

Hey, what do you know. We've seen this one before somewhere ...

lombokissues commented 9 years ago

:bust_in_silhouette: askoning   :clock8: Oct 07, 2013 at 18:44 UTC

Duplicate of issue #589

lombokissues commented 9 years ago

:bust_in_silhouette: mkozioro   :clock8: Oct 08, 2013 at 13:07 UTC

Yeah. I know downloading jdk from ibm is a nightmare. If you will successfully register then you can find link to jdk like: https://www14.software.ibm.com/webapp/iwm/web/preLogin.do?source=swg-sdk6&S_PKG=intel_6sr14&S_TACT=105AGX05&S_CMP=JDK

Use download from http (that option at least works)

and change sr14 to sr12 go get the one version from problem description.

lombokissues commented 9 years ago

End of migration