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
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: Jan Becicka
URL:
Keywords: API_REVIEW_FAST
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:


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

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/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