]> source.dussan.org Git - javassist.git/commitdiff
fixed JASSIST-212
authorchibash <chiba@javassist.org>
Sun, 1 Dec 2013 16:49:38 +0000 (01:49 +0900)
committerScott Marlow <smarlow@redhat.com>
Mon, 2 Dec 2013 15:04:38 +0000 (10:04 -0500)
src/test/test4/JIRA212.java [new file with mode: 0644]

diff --git a/src/test/test4/JIRA212.java b/src/test/test4/JIRA212.java
new file mode 100644 (file)
index 0000000..4c532d0
--- /dev/null
@@ -0,0 +1,23 @@
+package test4;
+
+public class JIRA212 {
+    public Long id;
+    public String name;
+    public void test() {
+        JIRA212 object = new JIRA212();
+
+        object.name = "test";  // get or set string value
+
+        try { // in try
+            object.id = 100L;  // get or set long value
+            String name = object.name;  // get or set string value
+        } catch (Throwable t) {
+            t.printStackTrace();
+        }
+    }
+
+    public Long getId() { return id; }
+    public void setId(Long id) { this.id = id; }
+    public String getName() { return name; }
+    public void setName(String name) { this.name = name; }
+}