-
Bug
-
Resolution: Fixed
-
P3
-
hs17
-
b06
-
x86
-
solaris
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2187047 | 7 | Vladimir Kozlov | P3 | Closed | Fixed | b79 |
JDK-2189893 | 6u21 | Vladimir Kozlov | P3 | Resolved | Fixed | b01 |
It seems that the following JCK test:
api/java_util/concurrent/CopyOnWriteArrayList/index.html#CopyOnWriteArrayList[testAddAll1_IndexOutOfBoundsException]
also fails due to the issue.
The minimized test throws NPE at line marked (*) with -Xcomp specified since JDK b72:
-----------------------------------------------------------
import java.util.*;
import java.util.concurrent.*;
public class CopyOnWriteArrayListTest {
public static void main(String argv[]) {
CopyOnWriteArrayListTest test = new CopyOnWriteArrayListTest();
test.testRemove1_IndexOutOfBounds();
test.testAddAll1_IndexOutOfBoundsException();
}
public void testRemove1_IndexOutOfBounds() {
CopyOnWriteArrayList c = new CopyOnWriteArrayList();
}
public void testAddAll1_IndexOutOfBoundsException() {
try {
CopyOnWriteArrayList c = new CopyOnWriteArrayList();
c.addAll(-1, new LinkedList()); // (*)
} catch (IndexOutOfBoundsException e) {
}
}
}
-----------------------------------------------------------
*** (#3 of 3): 2009-10-26 10:12:14 PDT ###@###.###
api/java_util/concurrent/CopyOnWriteArrayList/index.html#CopyOnWriteArrayList[testAddAll1_IndexOutOfBoundsException]
also fails due to the issue.
The minimized test throws NPE at line marked (*) with -Xcomp specified since JDK b72:
-----------------------------------------------------------
import java.util.*;
import java.util.concurrent.*;
public class CopyOnWriteArrayListTest {
public static void main(String argv[]) {
CopyOnWriteArrayListTest test = new CopyOnWriteArrayListTest();
test.testRemove1_IndexOutOfBounds();
test.testAddAll1_IndexOutOfBoundsException();
}
public void testRemove1_IndexOutOfBounds() {
CopyOnWriteArrayList c = new CopyOnWriteArrayList();
}
public void testAddAll1_IndexOutOfBoundsException() {
try {
CopyOnWriteArrayList c = new CopyOnWriteArrayList();
c.addAll(-1, new LinkedList()); // (*)
} catch (IndexOutOfBoundsException e) {
}
}
}
-----------------------------------------------------------
*** (#3 of 3): 2009-10-26 10:12:14 PDT ###@###.###
- backported by
-
JDK-2189893 JCK test throws NPE for method compiled with Escape Analysis
-
- Resolved
-
-
JDK-2187047 JCK test throws NPE for method compiled with Escape Analysis
-
- Closed
-
- relates to
-
JDK-6913075 EA identifies escape state incorrectly after 6895383 fix
-
- Resolved
-