* @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();
= 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());
cache = cp.get(oldName);
CtClass cache2 = cp.get(typeName);
- if (cache2.subclassOf(cache)) {
+ if (cache2.subtypeOf(cache)) {
cache = cache2;
return true;
}
<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>
<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>
<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>
</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:
<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>