United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-8020625 [TESTBUG] java/util/HashMap/OverrideIsEmpty.java doesn't compile for jdk7u
JDK-8020625 : [TESTBUG] java/util/HashMap/OverrideIsEmpty.java doesn't compile for jdk7u

Details
Type:
Bug
Submit Date:
2013-07-16
Status:
Resolved
Updated Date:
2014-02-12
Project Name:
JDK
Resolved Date:
2013-07-18
Component:
core-libs
OS:
Sub-Component:
java.util
CPU:
Priority:
P3
Resolution:
Fixed
Affected Versions:
7u60
Fixed Versions:
7u60 (b01)

Related Reports
Backport:
Backport:
Backport:
Backport:
Relates:

Sub Tasks

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
                                    

Comments
URL:   http://hg.openjdk.java.net/jdk7u/jdk7u-dev/jdk/rev/99a30047d18a
User:  ngmr
Date:  2013-07-18 10:15:41 +0000

                                     
2013-07-18
URL:   http://hg.openjdk.java.net/jdk7u/jdk7u/jdk/rev/99a30047d18a
User:  lana
Date:  2013-08-12 17:42:22 +0000

                                     
2013-08-12



Hardware and Software, Engineered to Work Together