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.

Bug 102333

Summary: There is no simple way how to weakly reference *all* elements from javac
Product: java Reporter: Jan Becicka <jbecicka>
Component: SourceAssignee: Jan Becicka <jbecicka>
Status: RESOLVED FIXED    
Severity: blocker Keywords: API_REVIEW_FAST
Priority: P3    
Version: 6.x   
Hardware: All   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 92974    
Attachments: Proposed patch

Description Jan Becicka 2007-04-24 14:31:20 UTC
For instance local variables cannot be referenced by ElementHandles while
source-less Elements cannot be referenced by TreePathHandles.
Comment 1 Jan Becicka 2007-04-24 14:36:47 UTC
I propose to add a new method
TreePathHandle.create(Element, CompilationInfo) to the API.
Comment 2 Jan Becicka 2007-04-24 14:38:21 UTC
Created attachment 41548 [details]
Proposed patch
Comment 3 Tomas Zezula 2007-04-26 16:22:59 UTC
Seems good to me. It's better to use cvs diff -u, the diff is more readable.
Comment 4 Jan Becicka 2007-04-27 10:00:50 UTC
I'm sorry. I tried to use IDE feature to create diff.

Comment 5 Jan Becicka 2007-04-27 10:01:22 UTC
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