jdk/src/share/classes/sun/misc/ProxyGenerator.java
changeset 10419 12c063b39232
parent 5506 202f599c92aa
child 11119 6ff03c1202ce
equal deleted inserted replaced
10418:1d57022fdb6e 10419:12c063b39232
   458             }
   458             }
   459 
   459 
   460             methods.add(generateStaticInitializer());
   460             methods.add(generateStaticInitializer());
   461 
   461 
   462         } catch (IOException e) {
   462         } catch (IOException e) {
   463             throw new InternalError("unexpected I/O Exception");
   463             throw new InternalError("unexpected I/O Exception", e);
   464         }
   464         }
   465 
   465 
   466         if (methods.size() > 65535) {
   466         if (methods.size() > 65535) {
   467             throw new IllegalArgumentException("method limit exceeded");
   467             throw new IllegalArgumentException("method limit exceeded");
   468         }
   468         }
   538 
   538 
   539                                          // u2 attributes_count;
   539                                          // u2 attributes_count;
   540             dout.writeShort(0); // (no ClassFile attributes for proxy classes)
   540             dout.writeShort(0); // (no ClassFile attributes for proxy classes)
   541 
   541 
   542         } catch (IOException e) {
   542         } catch (IOException e) {
   543             throw new InternalError("unexpected I/O Exception");
   543             throw new InternalError("unexpected I/O Exception", e);
   544         }
   544         }
   545 
   545 
   546         return bout.toByteArray();
   546         return bout.toByteArray();
   547     }
   547     }
   548 
   548