equal
deleted
inserted
replaced
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 |