lishunli / projectlombok

Automatically exported from code.google.com/p/projectlombok
0 stars 0 forks source link

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

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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. 

Original issue reported on code.google.com by mkozi...@gmail.com on 3 Oct 2013 at 8:47

GoogleCodeExporter commented 9 years ago
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

Original comment by mkozi...@gmail.com on 3 Oct 2013 at 8:56

GoogleCodeExporter commented 9 years ago
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...

Original comment by askon...@gmail.com on 7 Oct 2013 at 6:01

GoogleCodeExporter commented 9 years ago
Hey, what do you know. We've seen this one before somewhere ... 

Original comment by askon...@gmail.com on 7 Oct 2013 at 6:44

GoogleCodeExporter commented 9 years ago
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.

Original comment by mkozi...@gmail.com on 8 Oct 2013 at 1:07