1 package test4; 2 3 public class JIRA212 { 4 public Long id; 5 public String name; test()6 public void test() { 7 JIRA212 object = new JIRA212(); 8 9 object.name = "test"; // get or set string value 10 11 try { // in try 12 object.id = 100L; // get or set long value 13 String name = object.name; // get or set string value 14 } catch (Throwable t) { 15 t.printStackTrace(); 16 } 17 } 18 getId()19 public Long getId() { return id; } setId(Long id)20 public void setId(Long id) { this.id = id; } getName()21 public String getName() { return name; } setName(String name)22 public void setName(String name) { this.name = name; } 23 } 24