Author: markt
Date: Sat Nov 9 21:44:19 2013
New Revision: 1540411
URL: http://svn.apache.org/r1540411
Log:
Be consistent with exceptions choice for invalid data
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=1540411&r1=1540410&r2=1540411&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 Sat
Nov 9 21:44:19 2013
@@ -92,7 +92,7 @@ final class Utility {
static void swallowStackMapType(DataInput file) throws IOException {
byte type = file.readByte();
if ((type < Constants.ITEM_Bogus) || (type >
Constants.ITEM_NewObject)) {
- throw new RuntimeException("Illegal type for StackMapType: " +
type);
+ throw new ClassFormatException("Illegal type for StackMapType: " +
type);
}
// Check to see if type has an index
if ((type == Constants.ITEM_Object) || (type ==
Constants.ITEM_NewObject)) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]