This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
For instance local variables cannot be referenced by ElementHandles while source-less Elements cannot be referenced by TreePathHandles.
I propose to add a new method TreePathHandle.create(Element, CompilationInfo) to the API.
Created attachment 41548 [details] Proposed patch
Seems good to me. It's better to use cvs diff -u, the diff is more readable.
I'm sorry. I tried to use IDE feature to create diff.
Checking in nbproject/project.properties; /cvs/java/source/nbproject/project.properties,v <-- project.properties new revision: 1.19; previous revision: 1.18 done Checking in src/org/netbeans/api/java/source/TreePathHandle.java; /cvs/java/source/src/org/netbeans/api/java/source/TreePathHandle.java,v <-- TreePathHandle.java new revision: 1.8; previous revision: 1.7 done Checking in apichanges.xml; /cvs/java/source/apichanges.xml,v <-- apichanges.xml new revision: 1.9; previous revision: 1.8 done