aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/javassist
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/javassist')
-rw-r--r--src/test/javassist/proxyfactory/MyCls.java2
-rw-r--r--src/test/javassist/proxyfactory/ProxyFactoryTest.java2
-rw-r--r--src/test/javassist/proxyfactory/Tester.java5
3 files changed, 9 insertions, 0 deletions
diff --git a/src/test/javassist/proxyfactory/MyCls.java b/src/test/javassist/proxyfactory/MyCls.java
index 43fcb8dd..c4c5f35e 100644
--- a/src/test/javassist/proxyfactory/MyCls.java
+++ b/src/test/javassist/proxyfactory/MyCls.java
@@ -7,6 +7,8 @@ import java.io.Serializable;
*/
public class MyCls implements Serializable {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
private int i,j;
public int getI() {
diff --git a/src/test/javassist/proxyfactory/ProxyFactoryTest.java b/src/test/javassist/proxyfactory/ProxyFactoryTest.java
index 2b41af7a..dd52619d 100644
--- a/src/test/javassist/proxyfactory/ProxyFactoryTest.java
+++ b/src/test/javassist/proxyfactory/ProxyFactoryTest.java
@@ -59,6 +59,8 @@ public class ProxyFactoryTest extends TestCase {
public static class MyMethodHandler implements MethodHandler, Serializable {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
private int x;
public int getX() {
diff --git a/src/test/javassist/proxyfactory/Tester.java b/src/test/javassist/proxyfactory/Tester.java
index 601076da..7d484ecb 100644
--- a/src/test/javassist/proxyfactory/Tester.java
+++ b/src/test/javassist/proxyfactory/Tester.java
@@ -8,12 +8,17 @@ import java.io.ByteArrayOutputStream;
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());