I think I have encountered a bug in the reflection support in javarebel 1.1
If you have a class Test like so:
public class Test {
// public String foo = "foo";
public Integer foo = 12345;
public Test() { System.out.println(foo); }
}
And you reflect it from another class like so:
public class Proxy {
public static void test() throws Exception {
System.out.println(new Test().getClass().getField("foo"));
}
}
Then call if from a Main class like so:
public class Main {
public static void main(String[] args) throws Exception {
while(true) { Proxy.test(); Thread.sleep(500); }
}
}
If, while running, you change the type of 'foo' in Test from Integer to something else, say String the println in the Test constructor will be correct, but the result of getField() will still be the original type of Integer.
