Browse Source

fixed a but in javassist.bytecode.stackmap etc.


git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@372 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
tags/rel_3_17_1_ga
chiba 17 years ago
parent
commit
fef3cedb4b

+ 2
- 1
src/main/javassist/ClassPool.java View File

@@ -584,7 +584,8 @@ public class ClassPool {
* @see javassist.ByteArrayClassPath
*/
public CtClass makeClass(InputStream classfile)
throws IOException, RuntimeException {
throws IOException, RuntimeException
{
classfile = new BufferedInputStream(classfile);
CtClass clazz = new CtClassType(classfile, this);
clazz.checkModify();

+ 1
- 1
src/main/javassist/bytecode/ClassFileWriter.java View File

@@ -46,7 +46,7 @@ public class ClassFileWriter {
= AccessFlag.toModifier(cf.getAccessFlags()
& ~AccessFlag.SYNCHRONIZED);
out.println("major: " + cf.major + ", minor: " + cf.minor
+ "modifiers: " + Integer.toHexString(cf.getAccessFlags()));
+ " modifiers: " + Integer.toHexString(cf.getAccessFlags()));
out.println(Modifier.toString(mod) + " class "
+ cf.getName() + " extends " + cf.getSuperclass());


+ 1
- 1
src/main/javassist/bytecode/stackmap/TypeData.java View File

@@ -263,7 +263,7 @@ public abstract class TypeData {
cache = cp.get(oldName);
CtClass cache2 = cp.get(typeName);
if (cache2.subclassOf(cache)) {
if (cache2.subtypeOf(cache)) {
cache = cache2;
return true;
}

+ 1
- 1
tutorial/tutorial.html View File

@@ -1086,6 +1086,6 @@ For more information, see the API documentation of

<hr>
Java(TM) is a trademark of Sun Microsystems, Inc.<br>
Copyright (C) 2000-2005 by Shigeru Chiba, All rights reserved.
Copyright (C) 2000-2007 by Shigeru Chiba, All rights reserved.
</body>
</html>

+ 1
- 1
tutorial/tutorial2.html View File

@@ -1623,6 +1623,6 @@ write:

<hr>
Java(TM) is a trademark of Sun Microsystems, Inc.<br>
Copyright (C) 2000-2005 by Shigeru Chiba, All rights reserved.
Copyright (C) 2000-2007 by Shigeru Chiba, All rights reserved.
</body>
</html>

+ 3
- 3
tutorial/tutorial3.html View File

@@ -236,7 +236,7 @@ transformation.

<p>The generics of Java is implemented by the erasure technique.
After compilation, all type parameters are dropped off. For
example, suppose that your source code declare a parameterized
example, suppose that your source code declares a parameterized
type <code>Vector&lt;String&gt;</code>:

<ul><pre>
@@ -273,7 +273,7 @@ public interface Getter&lt;T&gt; {
</pre></ul>

<p>Then the interface you really have to add is <code>Getter</code>
(the type parameters <code>&lt;T&gt;<code> drops off)
(the type parameters <code>&lt;T&gt;</code> drops off)
and the method you also have to add to the <code>Wrapper</code>
class is this simple one:

@@ -289,6 +289,6 @@ public Object get() { return value; }

<hr>
Java(TM) is a trademark of Sun Microsystems, Inc.<br>
Copyright (C) 2000-2005 by Shigeru Chiba, All rights reserved.
Copyright (C) 2000-2007 by Shigeru Chiba, All rights reserved.
</body>
</html>

Loading…
Cancel
Save