Guava Line Construction Problem

I am asking this question on stackoverflow, as this is a suggested guava question forum, listed on the guava website (http://code.google.com/p/guava-libraries/).

I want to try some of the unreleased new google guava functions (e.g. the cool function MoreExecutors.listeningDecorator). Since I did not find the nightly build of goava guava, I decided to try to create a jar myself. Unfortunately, I see the following exception from javac (on Mac OS 10.6.8) when trying to create:

[javac] An exception has occurred in the compiler (1.6.0_24). 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. [javac] java.lang.NullPointerException [javac] at com.sun.tools.javac.comp.Check.checkCompatibleConcretes(Check.java:1215) [javac] at com.sun.tools.javac.comp.Check.checkCompatibleSupertypes(Check.java:1567) [javac] at com.sun.tools.javac.comp.Attr.attribClassBody(Attr.java:2674) [javac] at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:2628) [javac] at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:2564) [javac] at com.sun.tools.javac.main.JavaCompiler.attribute(JavaCompiler.java:1036) [javac] at com.sun.tools.javac.main.JavaCompiler.compile2(JavaCompiler.java:765) [javac] at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:730) . . 

I see that I am not alone in this error:

http://gump.zones.apache.org/gump/public/google-guava/google-guava/gump_work/build_google-guava_google-guava.html

I understand this seems like a Java compiler error, but is there a workaround for guava compilation? Or, if not, is there a lately night guava that I could use instead?

+4
source share
1 answer

I do not see any error on the page you linked to (it shows a successful build). Maybe this is fixed? Or could you attach the wrong URL?

I would try OpenJDK .

If this is a bug in the com.sum.* Libraries, you may find that OpenJDK does not suffer with the same problem.

+3
source

All Articles