-
Bug
-
Resolution: Fixed
-
P3
-
7u65, 8
-
b01
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8086991 | 8u65 | Maurizio Cimadamore | P3 | Resolved | Fixed | b01 |
JDK-8138421 | emb-8u65 | Unassigned | P3 | Resolved | Fixed | b01 |
JDK-8076922 | emb-8u60 | Maurizio Cimadamore | P3 | Resolved | Fixed | team |
JDK-8069592 | 7u80 | Maurizio Cimadamore | P3 | Closed | Won't Fix |
I am able to reproduce the issue using following sample code:
TestEnum.java
--------------------------------------------
import java.util.Enumeration;
import java.util.Hashtable;
public class TestEnum {
public static void main(String[] args) {
Hashtable hTable = new Hashtable();
hTable.put("hello", "value");
for (Enumeration enum = hTable.keys();;){
if(!enum.hasMoreElements())
break;
enum.nextElement();
}
}
}
--------------------------------------------
Compile using "-source 1.4" option
This code compiles fine with jdk6 but fails with error with jdk8
TestEnum.java
--------------------------------------------
import java.util.Enumeration;
import java.util.Hashtable;
public class TestEnum {
public static void main(String[] args) {
Hashtable hTable = new Hashtable();
hTable.put("hello", "value");
for (Enumeration enum = hTable.keys();;){
if(!enum.hasMoreElements())
break;
enum.nextElement();
}
}
}
--------------------------------------------
Compile using "-source 1.4" option
This code compiles fine with jdk6 but fails with error with jdk8
- backported by
-
JDK-8076922 java.lang.AssertionError when compiling JDK 1.4 code in JDK 8
-
- Resolved
-
-
JDK-8086991 java.lang.AssertionError when compiling JDK 1.4 code in JDK 8
-
- Resolved
-
-
JDK-8138421 java.lang.AssertionError when compiling JDK 1.4 code in JDK 8
-
- Resolved
-
-
JDK-8069592 java.lang.AssertionError when compiling JDK 1.4 code in JDK 8
-
- Closed
-
- relates to
-
JDK-8067111 Exception in compiler: java.lang.AssertionError: isSubClass E
-
- Closed
-
-
JDK-7160084 javac fails to compile an apparently valid class/interface combination
-
- Closed
-
(1 relates to)