Community
Participate
Working Groups
class SuperClass { public static final String CONSTANT = "value"; } class SubClass extends SuperClass { } class Test { public static void main(String[] arguments) { System.out.println(SubClass.CONSTANT); } } Use Refactor/Rename Element... to rename SubClass. The reference in Test is not updated, causing a compile time error.
jcore search problem - the reference in Test is not found. it is major. tested on F1
Good find! The type reference pattern was using the declaring class of the field binding of the qualified name reference instead of the actual receiver type binding. Fixed (and thanks for the test case)
reopening the end position of the match is incorrect (it includes the .CONSTANT as well) consider the following: class SuperClass { public static final String CONSTANT = "value"; } class SubClass extends SuperClass { } class Test { public static void main(String[] arguments) { System.out.println(SubClass.CONSTANT); System.out.println(SuperClass.CONSTANT); } } the reference to SuperClass in main is correct the reference to SubClass in main is incorrect (includes the .CONSTANT)
Sorry about that. I forgot to fix the part that computes the source positions. Fixed in build > 20020527
Verified in F2.