#177399 HR

Jaroslav Bachorik <[email protected]>
Newsgroups gmane.comp.java.netbeans.reviewers
Organization Sun, Inc.
Message-ID <1259078866.3201.104.camel@bender>
https://netbeans.org/bugzilla/show_bug.cgi?id=177399

Description:
#176399 - AssertionError at org.netbeans.api.javafx.source.ElementHandle.create
Renaming a language element referenced from other sources will cause the assertion error and breaks the rename refactoring functionality

Impact assessment:
Part of the rename refactoring for JavaFX does not work. The user may be
presented with an error or might get wrong results causing data loss.

Risk assessment:
The fix will use an ElementHandle for searching for references instead of TreePathHandle which is bound to the original source file.
In case that ElementHandle can not be provided (local variables eg.) the implementation will fall back to using TreePathHandle which is safe in such situation as the local element can not be referenced from outside

Changeset info:
http://hg.netbeans.org/javafx/rev/8c0c9d3644fa

QE confirmation and peer review is inside the issue.

-- 
Jaroslav Bachorik <mailto: [email protected]>
NetBeans IDE http://www.netbeans.org

Senior Software Engineer
Sun Microsystems, Prague, Czech Republic
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.