git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@372 30ef5769-5b8d-40dd-aea6-55b5d6557bb3tags/rel_3_17_1_ga
@@ -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(); |
@@ -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()); | |||
@@ -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; | |||
} |
@@ -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> |
@@ -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> |
@@ -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<String></code>: | |||
<ul><pre> | |||
@@ -273,7 +273,7 @@ public interface Getter<T> { | |||
</pre></ul> | |||
<p>Then the interface you really have to add is <code>Getter</code> | |||
(the type parameters <code><T><code> drops off) | |||
(the type parameters <code><T></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> |