(ClassLoader loader,
MethodAddendum addendum)
| 523 | } |
| 524 | |
| 525 | public static Object getAnnotationDefaultValue(ClassLoader loader, |
| 526 | MethodAddendum addendum) { |
| 527 | if (addendum == null) { |
| 528 | return null; |
| 529 | } |
| 530 | byte[] annotationDefault = (byte[]) addendum.annotationDefault; |
| 531 | if (annotationDefault == null) { |
| 532 | return null; |
| 533 | } |
| 534 | try { |
| 535 | return parseAnnotationValue(loader, addendum.pool, |
| 536 | new ByteArrayInputStream(annotationDefault)); |
| 537 | } catch (IOException e) { |
| 538 | AssertionError error = new AssertionError(); |
| 539 | error.initCause(e); |
| 540 | throw error; |
| 541 | } |
| 542 | } |
| 543 | |
| 544 | private static int index(VMMethod m) { |
| 545 | VMMethod[] table = m.class_.methodTable; |
no test coverage detected