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 - There is no simple way how to weakly reference *all* elements from javac
Summary: There is no simple way how to weakly reference *all* elements from javac
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: Jan Becicka
Depends on:
Blocks: 92974
  Show dependency tree
Reported: 2007-04-24 14:31 UTC by Jan Becicka
Modified: 2007-04-27 10:01 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:

Proposed patch (23.98 KB, text/plain)
2007-04-24 14:38 UTC, Jan Becicka

Note You need to log in before you can comment on or make changes to this bug.
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/;
/cvs/java/source/nbproject/,v  <--
new revision: 1.19; previous revision: 1.18
Checking in src/org/netbeans/api/java/source/;
/cvs/java/source/src/org/netbeans/api/java/source/,v  <--
new revision: 1.8; previous revision: 1.7
Checking in apichanges.xml;
/cvs/java/source/apichanges.xml,v  <--  apichanges.xml
new revision: 1.9; previous revision: 1.8