java.lang.ArrayIndexOutOfBoundsException: 79

JDK Bug System | Webbug Group | 2 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  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: 79
  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: 79
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ArrayIndexOutOfBoundsException

      79

      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
      HashMapCloneBug.main
      1. HashMapCloneBug.main(HashMapCloneBug.java:17)
      1 frame