java.lang.ArrayIndexOutOfBoundsException: 69

JDK Bug System | Webbug Group | 2 years ago
  1. 0

    FULL PRODUCT VERSION : 1.7.0_71 ADDITIONAL OS VERSION INFORMATION : Windows Linux A DESCRIPTION OF THE PROBLEM : Getting error while using below code. import java.util.HashMap; import java.util.Map; import java.util.Set; public class Testmap { public Testmap() { } protected void testMap() { MyMap myMap = new MyMap(); myMap.put("A", "VVVV"); System.out.println(myMap.clone()); System.out.println(myMap.get("A")); } public class MyMap extends HashMap { Map map = new HashMap(); public MyMap() { } @Override public Object put(Object key, Object value) { return map.put(key, value); } @Override public Object get(Object key) { return map.get(key); } @Override public Object clone() { return super.clone(); } @Override public Set entrySet() { return map.entrySet(); } } /** * @param args */ public static void main(String[] args) { Testmap test = new Testmap(); test.testMap(); } } Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 69 at java.util.HashMap.putForCreate(HashMap.java:541) at java.util.HashMap.putAllForCreate(HashMap.java:555) at java.util.HashMap.clone(HashMap.java:796) at Testmap$MyMap.clone(Testmap.java:52) at Testmap.testMap(Testmap.java:27) at Testmap.main(Testmap.java:66) REGRESSION. Last worked in version 7u45 STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : //Execute below code import java.util.HashMap; import java.util.Map; import java.util.Set; public class Testmap { public Testmap() { } protected void testMap() { MyMap myMap = new MyMap(); myMap.put("A", "VVVV"); System.out.println(myMap.clone()); System.out.println(myMap.get("A")); } public class MyMap extends HashMap { Map map = new HashMap(); public MyMap() { } @Override public Object put(Object key, Object value) { return map.put(key, value); } @Override public Object get(Object key) { return map.get(key); } @Override public Object clone() { return super.clone(); } @Override public Set entrySet() { return map.entrySet(); } } /** * @param args */ public static void main(String[] args) { Testmap test = new Testmap(); test.testMap(); } } EXPECTED VERSUS ACTUAL BEHAVIOR : EXPECTED - It was working properly in earlier java7 versions. ACTUAL - Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 69 at java.util.HashMap.putForCreate(HashMap.java:541) at java.util.HashMap.putAllForCreate(HashMap.java:555) at java.util.HashMap.clone(HashMap.java:796) at Testmap$MyMap.clone(Testmap.java:52) at Testmap.testMap(Testmap.java:27) at Testmap.main(Testmap.java:66) REPRODUCIBILITY : This bug can be reproduced always. SUPPORT : YES

    JDK Bug System | 2 years ago | Webbug Group
    java.lang.ArrayIndexOutOfBoundsException: 69
  2. 0

    FULL PRODUCT VERSION : 1.7.0_71 ADDITIONAL OS VERSION INFORMATION : Windows Linux A DESCRIPTION OF THE PROBLEM : Getting error while using below code. import java.util.HashMap; import java.util.Map; import java.util.Set; public class Testmap { public Testmap() { } protected void testMap() { MyMap myMap = new MyMap(); myMap.put("A", "VVVV"); System.out.println(myMap.clone()); System.out.println(myMap.get("A")); } public class MyMap extends HashMap { Map map = new HashMap(); public MyMap() { } @Override public Object put(Object key, Object value) { return map.put(key, value); } @Override public Object get(Object key) { return map.get(key); } @Override public Object clone() { return super.clone(); } @Override public Set entrySet() { return map.entrySet(); } } /** * @param args */ public static void main(String[] args) { Testmap test = new Testmap(); test.testMap(); } } Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 69 at java.util.HashMap.putForCreate(HashMap.java:541) at java.util.HashMap.putAllForCreate(HashMap.java:555) at java.util.HashMap.clone(HashMap.java:796) at Testmap$MyMap.clone(Testmap.java:52) at Testmap.testMap(Testmap.java:27) at Testmap.main(Testmap.java:66) REGRESSION. Last worked in version 7u45 STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : //Execute below code import java.util.HashMap; import java.util.Map; import java.util.Set; public class Testmap { public Testmap() { } protected void testMap() { MyMap myMap = new MyMap(); myMap.put("A", "VVVV"); System.out.println(myMap.clone()); System.out.println(myMap.get("A")); } public class MyMap extends HashMap { Map map = new HashMap(); public MyMap() { } @Override public Object put(Object key, Object value) { return map.put(key, value); } @Override public Object get(Object key) { return map.get(key); } @Override public Object clone() { return super.clone(); } @Override public Set entrySet() { return map.entrySet(); } } /** * @param args */ public static void main(String[] args) { Testmap test = new Testmap(); test.testMap(); } } EXPECTED VERSUS ACTUAL BEHAVIOR : EXPECTED - It was working properly in earlier java7 versions. ACTUAL - Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 69 at java.util.HashMap.putForCreate(HashMap.java:541) at java.util.HashMap.putAllForCreate(HashMap.java:555) at java.util.HashMap.clone(HashMap.java:796) at Testmap$MyMap.clone(Testmap.java:52) at Testmap.testMap(Testmap.java:27) at Testmap.main(Testmap.java:66) REPRODUCIBILITY : This bug can be reproduced always. SUPPORT : YES

    JDK Bug System | 2 years ago | Webbug Group
    java.lang.ArrayIndexOutOfBoundsException: 69
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Hex Issues

    Google Groups | 10 years ago | Amer
    java.lang.ArrayIndexOutOfBoundsException: 69)
  5. 0

    Hex Issues

    Google Groups | 10 years ago | Amer
    java.lang.ArrayIndexOutOfBoundsException: 69

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ArrayIndexOutOfBoundsException

      69

      at java.util.HashMap.putForCreate()
    2. Java RT
      HashMap.clone
      1. java.util.HashMap.putForCreate(HashMap.java:541)
      2. java.util.HashMap.putAllForCreate(HashMap.java:555)
      3. java.util.HashMap.clone(HashMap.java:796)
      3 frames
    3. Unknown
      Testmap.main
      1. Testmap$MyMap.clone(Testmap.java:52)
      2. Testmap.testMap(Testmap.java:27)
      3. Testmap.main(Testmap.java:66)
      3 frames