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-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org