diff options
author | chibash <chiba@javassist.org> | 2013-12-02 01:49:38 +0900 |
---|---|---|
committer | chibash <chiba@javassist.org> | 2013-12-02 01:49:38 +0900 |
commit | f2106b67e240fb43ce218216092901c85b088329 (patch) | |
tree | c47e44ca43f3eb5ae72234e28bcd3efbc2d0bff3 /src | |
parent | a688386baf73aaf7ff345bb02e09d67c68622258 (diff) | |
download | javassist-f2106b67e240fb43ce218216092901c85b088329.tar.gz javassist-f2106b67e240fb43ce218216092901c85b088329.zip |
fixed JASSIST-212
Diffstat (limited to 'src')
-rw-r--r-- | src/test/test4/JIRA212.java | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/test/test4/JIRA212.java b/src/test/test4/JIRA212.java new file mode 100644 index 00000000..4c532d00 --- /dev/null +++ b/src/test/test4/JIRA212.java @@ -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; } +} |