jdk/src/share/classes/sun/misc/ProxyGenerator.java
changeset 25187 08aff438def8
parent 21655 55f32ae4f920
child 25522 10d789df41bb
equal deleted inserted replaced
25186:63e1a2ec30f5 25187:08aff438def8
  1883                 if (readOnly) {
  1883                 if (readOnly) {
  1884                     throw new InternalError(
  1884                     throw new InternalError(
  1885                         "late constant pool addition: " + key);
  1885                         "late constant pool addition: " + key);
  1886                 }
  1886                 }
  1887                 short i = addEntry(new ValueEntry(key));
  1887                 short i = addEntry(new ValueEntry(key));
  1888                 map.put(key, new Short(i));
  1888                 map.put(key, i);
  1889                 return i;
  1889                 return i;
  1890             }
  1890             }
  1891         }
  1891         }
  1892 
  1892 
  1893         /**
  1893         /**
  1901             } else {
  1901             } else {
  1902                 if (readOnly) {
  1902                 if (readOnly) {
  1903                     throw new InternalError("late constant pool addition");
  1903                     throw new InternalError("late constant pool addition");
  1904                 }
  1904                 }
  1905                 short i = addEntry(e);
  1905                 short i = addEntry(e);
  1906                 map.put(e, new Short(i));
  1906                 map.put(e, i);
  1907                 return i;
  1907                 return i;
  1908             }
  1908             }
  1909         }
  1909         }
  1910 
  1910 
  1911         /**
  1911         /**