* Thrown when bytecode transformation has failed.
*/
public class CannotCompileException extends Exception {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
private Throwable myCause;
/**
* @see CtNewMethod#copy(CtMethod,String,CtClass,ClassMap)
*/
public class ClassMap extends java.util.HashMap {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
private ClassMap parent;
/**
ClassFile cf = getClassFile2();
if (cf != null) {
ClassMap cm = new ClassMap() {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
+
public void put(String oldname, String newname) {
put0(oldname, newname);
}
* Signals that something could not be found.
*/
public class NotFoundException extends Exception {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
+
public NotFoundException(String msg) {
super(msg);
}
* Signals that a bad bytecode sequence has been found.
*/
public class BadBytecode extends Exception {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
+
public BadBytecode(int opcode) {
super("bytecode " + opcode);
}
* in <code>CodeAttribute</code>.
*/
public static class RuntimeCopyException extends RuntimeException {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
+
/**
* Constructs an exception.
*/
// methods for implementing insertGap().
- static class AlignmentException extends Exception {}
+ static class AlignmentException extends Exception {
+
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;}
/**
* insertGapCore0() inserts a gap (some NOPs).
* @see ClassFile#addField(FieldInfo)
*/
public class DuplicateMemberException extends CannotCompileException {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
+
public DuplicateMemberException(String msg) {
super(msg);
}
* in <code>StackMapTable</code>.
*/
public static class RuntimeCopyException extends RuntimeException {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
+
/**
* Constructs an exception.
*/
* It keeps the name of the class that caused this error.
*/
public class NoSuchClassError extends Error {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
private String className;
/**
*/
public class BasicBlock {
static class JsrBytecode extends BadBytecode {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
+
JsrBytecode() { super("JSR"); }
}
import javassist.NotFoundException;
public class CompileError extends Exception {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
private Lex lex;
private String reason;
package javassist.compiler;
public final class KeywordTable extends java.util.HashMap {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
+
public KeywordTable() { super(); }
public int lookup(String name) {
import javassist.compiler.ast.ASTree;
public class NoFieldException extends CompileError {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
private String fieldName;
private ASTree expr;
import javassist.compiler.ast.Declarator;
public final class SymbolTable extends HashMap {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
private SymbolTable parent;
public SymbolTable() { this(null); }
package javassist.compiler;
public class SyntaxError extends CompileError {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
+
public SyntaxError(Lex lexer) {
super("syntax error near \"" + lexer.getTextAround() + "\"", lexer);
}
* The right subtree must be an ASTList object or null.
*/
public class ASTList extends ASTree {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
private ASTree left;
private ASTList right;
* and <code>getRight()</code> returns null.
*/
public abstract class ASTree implements Serializable {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
+
public ASTree getLeft() { return null; }
public ASTree getRight() { return null; }
* Array initializer such as <code>{ 1, 2, 3 }</code>.
*/
public class ArrayInit extends ASTList {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
+
public ArrayInit(ASTree firstElement) {
super(firstElement);
}
* =, %=, &=, *=, +=, -=, /=, ^=, |=, <<=, >>=, >>>=
*/
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
+
private AssignExpr(int op, ASTree _head, ASTList _tail) {
super(op, _head, _tail);
}
* <<, >>, >>>, +, -, *, /, %
*/
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
+
private BinExpr(int op, ASTree _head, ASTList _tail) {
super(op, _head, _tail);
}
* Method call expression.
*/
public class CallExpr extends Expr {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
private MemberResolver.Method method; // cached result of lookupMethod()
private CallExpr(ASTree _head, ASTList _tail) {
* Cast expression.
*/
public class CastExpr extends ASTList implements TokenId {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
protected int castType;
protected int arrayDim;
* Conditional expression.
*/
public class CondExpr extends ASTList {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
+
public CondExpr(ASTree cond, ASTree thenp, ASTree elsep) {
super(cond, new ASTList(thenp, new ASTList(elsep)));
}
* Variable declarator.
*/
public class Declarator extends ASTList implements TokenId {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
protected int varType;
protected int arrayDim;
protected int localVar;
* Double constant.
*/
public class DoubleConst extends ASTree {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
protected double value;
protected int type;
* Otherwise, the object should be an instance of a subclass.
*/
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
protected int operatorId;
Expr(int op, ASTree _head, ASTList _tail) {
import javassist.compiler.CompileError;
public class FieldDecl extends ASTList {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
+
public FieldDecl(ASTree _head, ASTList _tail) {
super(_head, _tail);
}
* Instanceof expression.
*/
public class InstanceOfExpr extends CastExpr {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
+
public InstanceOfExpr(ASTList className, int dim, ASTree expr) {
super(className, dim, expr);
}
* Integer constant.
*/
public class IntConst extends ASTree {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
protected long value;
protected int type;
* Keyword.
*/
public class Keyword extends ASTree {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
protected int tokenId;
public Keyword(int token) {
* Member name.
*/
public class Member extends Symbol {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
// cache maintained by fieldAccess() in TypeChecker.
// this is used to obtain the value of a static final field.
private CtField field;
import javassist.compiler.CompileError;
public class MethodDecl extends ASTList {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
public static final String initName = "<init>";
public MethodDecl(ASTree _head, ASTList _tail) {
* New Expression.
*/
public class NewExpr extends ASTList implements TokenId {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
protected boolean newArray;
protected int arrayType;
* overriding abstract methods in ASTree.
*/
public class Pair extends ASTree {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
protected ASTree left, right;
public Pair(ASTree _left, ASTree _right) {
* Statement.
*/
public class Stmnt extends ASTList implements TokenId {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
protected int operatorId;
public Stmnt(int op, ASTree _head, ASTList _tail) {
* String literal.
*/
public class StringL extends ASTree {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
protected String text;
public StringL(String t) {
* Identifier.
*/
public class Symbol extends ASTree {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
protected String identifier;
public Symbol(String sym) {
* Variable.
*/
public class Variable extends Symbol {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
protected Declarator declarator;
public Variable(String sym, Declarator d) {
* Signals that <code>ClassMetaobject.newInstance()</code> fails.
*/
public class CannotCreateException extends Exception {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
+
public CannotCreateException(String s) {
super(s);
}
*/
public class CannotInvokeException extends RuntimeException {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
private Throwable err = null;
/**
* @see javassist.CannotCompileException
*/
public class CannotReflectException extends CannotCompileException {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
+
public CannotReflectException(String msg) {
super(msg);
}
* @see javassist.tools.reflect.Metalevel
*/
public class ClassMetaobject implements Serializable {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
/**
* The base-level methods controlled by a metaobject
* are renamed so that they begin with
* @see javassist.tools.reflect.Metalevel
*/
public class Metaobject implements Serializable {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
protected ClassMetaobject classmetaobject;
protected Metalevel baseobject;
protected Method[] methods;
* @see javassist.tools.web.Viewer
*/
public class ObjectImporter implements java.io.Serializable {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
private final byte[] endofline = { 0x0d, 0x0a };
private String servername, orgServername;
private int port, orgPort;
package javassist.tools.rmi;
public class ObjectNotFoundException extends Exception {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
+
public ObjectNotFoundException(String name) {
super(name + " is not exported");
}
* during remote method invocation.
*/
public class RemoteException extends RuntimeException {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
+
public RemoteException(String msg) {
super(msg);
}
* reference through a network stream.
*/
public class RemoteRef implements java.io.Serializable {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
public int oid;
public String classname;
* Thrown when receiving an invalid HTTP request.
*/
public class BadHttpRequest extends Exception {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
private Exception e;
public BadHttpRequest() { e = null; }
public static MethodHandler default_interceptor = new DefaultMethodHandler();
static class DefaultMethodHandler implements MethodHandler, Serializable {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
+
public Object invoke(Object self, Method m,
Method proceed, Object[] args)
throws Exception
* @see RuntimeSupport#makeSerializedProxy(Object)
*/
class SerializedProxy implements Serializable {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
private String superClass;
private String[] interfaces;
private byte[] filterSignature;
*/
public class MyCls implements Serializable {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
private int i,j;
public int getI() {
public static class MyMethodHandler implements MethodHandler, Serializable {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
private int x;
public int getX() {
import java.lang.reflect.Method;
class Hand implements java.io.Serializable {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
public int setHandler(int i) { return i; }
int getHandler() { return 3; }
}
public class Tester extends TestCase {
static class MHandler implements MethodHandler, java.io.Serializable {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
+
public Object invoke(Object self, Method m, Method proceed,
Object[] args) throws Throwable {
System.out.println("Name: " + m.getName());
public static class A {};
- public static class B1 extends A implements Serializable {};
- public static class B2 extends A implements Serializable {};
- public static class A2 implements Serializable, Cloneable {};
- public static class A3 implements Serializable, Cloneable {};
-
+ public static class B1 extends A implements Serializable {
+ private static final long serialVersionUID = 1L;};
+ public static class B2 extends A implements Serializable {
+ private static final long serialVersionUID = 1L;};
+ public static class A2 implements Serializable, Cloneable {
+ private static final long serialVersionUID = 1L;};
+ public static class A3 implements Serializable, Cloneable {
+ private static final long serialVersionUID = 1L;};
public static class B3 extends A {};
- public static class C31 extends B3 implements Serializable {};
+ public static class C31 extends B3 implements Serializable {
+ private static final long serialVersionUID = 1L;};
public void dummy(Serializable s) {}
public static class TestFilter implements MethodFilter, Serializable
{
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
+
public boolean isHandled(Method m) {
if (m.getName().equals("getName")) {
return true;
public static class TestHandler implements MethodHandler, Serializable
{
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
+
public Object invoke(Object self, Method thisMethod, Method proceed, Object[] args) throws Throwable
{
return proceed.invoke(self, args);
public static class TestClass implements Serializable
{
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
public String name;
public TestClass()
}
public static class ReadWriteData implements Serializable {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
+
public int foo() { return 4; }
}
}
public static class WriteReplace implements Serializable {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
+
public Object writeReplace() { return this; }
}
public static class WriteReplace2 implements Serializable {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
+
public Object writeReplace(int i) { return Integer.valueOf(i); }
}
package test1;
class GetThrow1 extends Exception {
+
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
}
class GetThrow2 extends Exception {
+
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
}
public class GetThrowables {
* @author Bob Lee
*/
public class MySerializableClass implements Serializable, Cloneable {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
String fieldA;
String fieldB;
import java.util.HashMap;\r
\r
class HashMapWrapper extends HashMap {\r
+ /** default serialVersionUID */\r
+ private static final long serialVersionUID = 1L;\r
+\r
HashMapWrapper(int size, int args) {\r
super(size);\r
}\r
package test2;\r
\r
public class Prune extends java.awt.Point implements Cloneable, Runnable {\r
+ /** default serialVersionUID */\r
+ private static final long serialVersionUID = 1L;\r
public int value;\r
\r
public Prune(int i) {\r
}
public Object foo() {
return new java.util.HashSet<String>() {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
+
public String toString() { return this.getClass().toString(); }
};
}
import java.util.ArrayList;
public class JIRA181<T extends Number> extends ArrayList<T> {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
+
public @interface Condition {
Class<? extends ICondition> condition();
}
*/\r
\r
class SampleBean implements Serializable {\r
+ /** default serialVersionUID */\r
+ private static final long serialVersionUID = 1L;\r
+\r
long oid;\r
\r
int version;\r
}
public static class ReadWriteData implements Serializable {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
+
public int foo() { return 4; }
}
}
public static class WriteReplace implements Serializable {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
+
public Object writeReplace() { return this; }
}
public static class WriteReplace2 implements Serializable {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
+
public Object writeReplace(int i) { return Integer.valueOf(i); }
}