BAEL-634 javassist (#1349)

* BEEL-634 javassist dependency

* BEEL-634 code for javassist article

* BEEL-634 test refinement

* BEEL-634 increment lib to newest version

* add test that uses reflection to verify

* add field

* add bytecode to different class
This commit is contained in:
Tomasz Lelek
2017-03-15 10:51:33 +01:00
committed by pedja4
parent 61660f5d37
commit 5cd552a16b
4 changed files with 162 additions and 1 deletions
@@ -0,0 +1,17 @@
package com.baeldung.javasisst;
public class Point {
public int x = 0;
public int y = 0;
public Point(int x, int y) {
this.x = x;
this.y = y;
}
public void move(int x, int y) {
this.x = x;
this.y = y;
}
}
@@ -0,0 +1,19 @@
package com.baeldung.javasisst;
public class ThreeDimensionalPoint {
public int x = 0;
public int y = 0;
public int z = 0;
public ThreeDimensionalPoint(int x, int y, int z) {
this.x = x;
this.y = y;
this.z = z;
}
public void move(int x, int y) {
this.x = x;
this.y = y;
}
}