Community
Participate
Working Groups
latest 2.1 patch package p; class NonnaPapera { } class Paperino extends NonnaPapera { } public class TestRefactor { public static void main(String[] args) { Paperino paperino = new Paperino(); NonnaPapera nonnaPapera = ( NonnaPapera )paperino; } } search for references to class NonnaPapera the range of the ref found in main is incorrect
Parser.consumeCastExpressionLL1() was incorrectly setting the positions of the type reference to the enclosing brackets (+1 and -1). Fixed by not changing the positions of the type reference.
Also fixed Parser.consumePrimaryNoNewArray() to not update the positions of the expression.
Actually the last change (on Parser.consumePrimaryNoNewArray()) breaks the dom AST in the parenthesis expressin area. Backing out last change and reopening bug.
Change pushed down to MatchLocatorParser.
Verified.