JDK-8012343 : Objects.requireNonNull(Object,Supplier) breaks genstubs build
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util
  • Affected Version: 8
  • Priority: P1
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2013-04-16
  • Updated: 2013-06-18
  • Resolved: 2013-04-16
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8 b87Fixed
Related Reports
Relates :  
Relates :  
Description

## 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
/u/alanb/ws/tl/build/linux-x86_64-normal-server-release/langtools/genstubs/java/util/Objects.java:3: error: package java.util.function does not exist
import java.util.function.Supplier;
                         ^
/u/alanb/ws/tl/build/linux-x86_64-normal-server-release/langtools/genstubs/java/util/Objects.java:29: 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]: *** [/u/alanb/ws/tl/build/linux-x86_64-normal-server-release/langtools/classes/_the.batch] Error 1
make: *** [langtools-only] Error 2
Comments
verified in b94
18-06-2013

java.util.function.Supplier is not supported by the boot JDK so the genstubs build will need to be looked at. In the mean-time, we might have to backout the change to Objects.
16-04-2013