You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2014/09/11 23:23:10 UTC
svn commit: r1624396 -
/tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Utility.java
Author: markt
Date: Thu Sep 11 21:23:10 2014
New Revision: 1624396
URL: http://svn.apache.org/r1624396
Log:
Use ClassFormatException so we can see where the error was triggered.
Modified:
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Utility.java
Modified: tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Utility.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Utility.java?rev=1624396&r1=1624395&r2=1624396&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Utility.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Utility.java Thu Sep 11 21:23:10 2014
@@ -345,7 +345,7 @@ final class Utility {
}
break;
default:
- throw new RuntimeException(
+ throw new ClassFormatException(
"Unexpected element value kind in annotation: " + type);
}
}
@@ -446,7 +446,7 @@ final class Utility {
swallowMethodParameters(file);
break;
default: // Never reached
- throw new IllegalStateException("Unrecognized attribute type tag parsed: " + tag);
+ throw new ClassFormatException("Unrecognized attribute type tag parsed: " + tag);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org