Build failure: langtools, cannot find symbol Objects.requireNonNull

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Tue Jun 4 09:18:27 PDT 2013


This is typically caused by having JDK 8 as your boot JDK. Try use JDK 7 
and see if that solves your issue.

Maurizio

On 04/06/13 15:51, Aleksey Shipilev wrote:
> Hi there,
>
> Building today's lambda/lambda fails even after a few clean rebuilds:
>
> ## Starting langtools
> Compiling 2 files for BUILD_TOOLS
> Compiling 25 properties into resource bundles
> Compiling 752 files for BUILD_BOOTSTRAP_LANGTOOLS
> Creating langtools/dist/bootstrap/lib/javac.jar
> Updating langtools/dist/lib/src.zip
> Compiling 755 files for BUILD_FULL_JAVAC
> /home/shade/trunks/lambda/build/linux-x86_64-normal-server-fastdebug/langtools/genstubs/java/util/Objects.java:3:
> error: package java.util.function does not exist
> import java.util.function.Supplier;
>                           ^
> /home/shade/trunks/lambda/build/linux-x86_64-normal-server-fastdebug/langtools/genstubs/java/util/Objects.java:33:
> error: cannot find symbol
>      public static native <T>T requireNonNull(T obj, Supplier<String>
> messageSupplier);
>                                                      ^
>    symbol:   class Supplier
>    location: class Objects
> 2 errors
> make[1]: ***
> [/home/shade/trunks/lambda/build/linux-x86_64-normal-server-fastdebug/langtools/classes/_the.batch]
> Error 1
> make: *** [langtools-only] Error 2
>
> Is this something known?
>
> -Aleksey.
>



More information about the lambda-dev mailing list