java.lang.reflect.Field bug

There is bug in java.lang.reflect.Field in JNode: Field.getType() throws a NullPointerException if the field it represents is a primitive type. Try the following code:

import java.lang.reflect.Field;
public class ReflectTest {
int reflectTestInt;
public static void main(String[] args) {
Field[] fields = ReflectTest.class.getDeclaredFields();
System.out.println(fields[0].getType());
}
}

Andras