JDK-8020625 : [TESTBUG] java/util/HashMap/OverrideIsEmpty.java doesn't compile for jdk7u
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util:collections
  • Affected Version: 7u60
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2013-07-16
  • Updated: 2021-03-03
  • Resolved: 2013-07-18
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 7
7u40Fixed
Related Reports
Relates :  
Description
there is no java.util.function.BiFunction class in 7u and the testcase needs updating.

command: compile -XDignore.symbol.file=true /opt/jprt/T/P1/165231.scoffey/s/jdk/test/java/util/HashMap/OverrideIsEmpty.java
reason: .class file out of date or does not exist
elapsed time (seconds): 0.09
direct:
/opt/jprt/T/P1/165231.scoffey/s/jdk/test/java/util/HashMap/OverrideIsEmpty.java:36: error: package java.util.function does not exist
import java.util.function.BiFunction;
                         ^
/opt/jprt/T/P1/165231.scoffey/s/jdk/test/java/util/HashMap/OverrideIsEmpty.java:69: error: cannot find symbol
        map.replace(key, value, null);
           ^
  symbol:   method replace(Object,Object,<null>)
  location: variable map of type NotEmptyHashMap<Object,Object>
/opt/jprt/T/P1/165231.scoffey/s/jdk/test/java/util/HashMap/OverrideIsEmpty.java:70: error: cannot find symbol
        map.replace(key, value);
           ^
  symbol:   method replace(Object,Object)
  location: variable map of type NotEmptyHashMap<Object,Object>
/opt/jprt/T/P1/165231.scoffey/s/jdk/test/java/util/HashMap/OverrideIsEmpty.java:71: error: cannot find symbol
        map.computeIfPresent(key, new BiFunction<Object, Object, Object>() {
                                      ^
  symbol:   class BiFunction
  location: class OverrideIsEmpty
4 errors

TEST RESULT: Failed. Compilation failed: Compilation failed