Author: markt
Date: Tue Nov 25 15:35:39 2014
New Revision: 1641634
URL: http://svn.apache.org/r1641634
Log:
Revert r1625504, the fix for
https://issues.apache.org/bugzilla/show_bug.cgi?id=56953 and an attempt to
enhance performance of annotation scanning.
The FastDataInputStream class was broken and caused multiple reports of
regressions (https://issues.apache.org/bugzilla/show_bug.cgi?id=57173)
Removed:
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/FastDataInputStream.java
Modified:
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ClassParser.java
Modified:
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ClassParser.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ClassParser.java?rev=1641634&r1=1641633&r2=1641634&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ClassParser.java
(original)
+++ tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ClassParser.java
Tue Nov 25 15:35:39 2014
@@ -17,7 +17,9 @@
*/
package org.apache.tomcat.util.bcel.classfile;
+import java.io.BufferedInputStream;
import java.io.DataInput;
+import java.io.DataInputStream;
import java.io.IOException;
import java.io.InputStream;
@@ -57,7 +59,7 @@ public final class ClassParser {
* @param file Input stream
*/
public ClassParser(InputStream file) {
- this.file = new FastDataInputStream(file, BUFSIZE);
+ this.file = new DataInputStream(new BufferedInputStream(file,
BUFSIZE));
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]