Community
Participate
Working Groups
I have a small snippet with two member variables. Changing the first member ("BEFORE" -> "AFTER")is no problem, however the second one fails ("objectToPrimitiveMap" -> "OBJECT_TO_PRIMITIVE_MAP"): import java.lang.reflect.Type; import java.util.HashMap; import java.util.Map; public class TestStaticMemeber { private static final Map<String, String> BEFORE = new HashMap<String, String>(4); static { BEFORE.put("key1","value1"); BEFORE.put("key2","value2"); } private static final Map<Class, Type> objectToPrimitiveMap = new HashMap<Class, Type>(8); static { objectToPrimitiveMap.put(Boolean.class, Boolean.TYPE); objectToPrimitiveMap.put(Byte.class, Byte.TYPE); objectToPrimitiveMap.put(Character.class, Character.TYPE); objectToPrimitiveMap.put(Double.class, Double.TYPE); objectToPrimitiveMap.put(Float.class, Float.TYPE); objectToPrimitiveMap.put(Integer.class, Integer.TYPE); objectToPrimitiveMap.put(Long.class, Long.TYPE); objectToPrimitiveMap.put(Short.class, Short.TYPE); } }
Fixed. Search engine correctly founds now reference to second static field. Problem came from the fact that one of the type arguments used for this field parameterized type declaration was a raw type... [jdt-core-internal] Test case added: JavaSearchTests#testFieldReferenceBug79267()
Verified in 200412140800