diff options
author | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2011-08-31 10:29:34 +0000 |
---|---|---|
committer | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2011-08-31 10:29:34 +0000 |
commit | d72870bfb6b09927e10944bdd129ce18dfcf7366 (patch) | |
tree | 27f56e4d1523a8cecc8976df60155e6b8429e504 /src/test/test1/CodeConv.java | |
parent | 76a1cba9c433e8242bb6648e72b3ed43c7a4995a (diff) | |
download | javassist-d72870bfb6b09927e10944bdd129ce18dfcf7366.tar.gz javassist-d72870bfb6b09927e10944bdd129ce18dfcf7366.zip |
JvstTest test case.
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@589 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/test/test1/CodeConv.java')
-rw-r--r-- | src/test/test1/CodeConv.java | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/test/test1/CodeConv.java b/src/test/test1/CodeConv.java new file mode 100644 index 00000000..76cc010b --- /dev/null +++ b/src/test/test1/CodeConv.java @@ -0,0 +1,25 @@ +package test1; + +class CodeConvP { + private int a1 = 7; + protected int a2 = 11; + protected int a3 = 13; + protected int a4 = 17; + + protected int b1 = 3; + + public static int getA1(Object t) { return 23; } + + public static int getA2(Object t) { return 27; } + + public static void putB1(Object t, int v) { ((CodeConvP)t).b1 = 5; } +} + +public class CodeConv extends CodeConvP { + private String a1 = "a1"; + + public int run() { + b1 = 0; + return b1 + a1.length() + a2 + a3; + } +} |