--- a/langtools/src/share/classes/com/sun/tools/javap/ClassWriter.java Mon Jun 16 22:23:33 2008 -0700
+++ b/langtools/src/share/classes/com/sun/tools/javap/ClassWriter.java Wed Jun 18 16:53:08 2008 -0700
@@ -291,7 +291,7 @@
for (int i = 0; i < exceptions.number_of_exceptions; i++) {
if (i > 0)
print(", ");
- print(attrWriter.getJavaException(exceptions, i));
+ print(getJavaException(exceptions, i));
}
}
} else {
@@ -441,6 +441,14 @@
}
}
+ String getJavaException(Exceptions_attribute attr, int index) {
+ try {
+ return getJavaName(attr.getException(index, constant_pool));
+ } catch (ConstantPoolException e) {
+ return report(e);
+ }
+ }
+
String getValue(Descriptor d) {
try {
return d.getValue(constant_pool);