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 42666 - Do not force creation and retention of FileObject's for every hyperlink
Summary: Do not force creation and retention of FileObject's for every hyperlink
Status: VERIFIED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 3.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords: API, PERFORMANCE
Depends on:
Blocks:
 
Reported: 2004-04-30 23:51 UTC by Jesse Glick
Modified: 2005-07-14 16:20 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The patch (15.34 KB, patch)
2004-05-01 00:31 UTC, Jesse Glick
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2004-04-30 23:51:48 UTC
Currently Ant hyperlink parsing not only creates a
FileObject for every hyperlink, but retains a
reference to that FileObject for as long as the
output is displayed. This is wasteful, since the
FileObject may never be needed; only if the link
is clicked.

Should change AntOutputStream to not force
creation of the hyperlink; and to keep only a URL
or File internally, until the link is actually
activated.

Should be compatible for existing AOS subclasses
(though there aren't any).
Comment 1 Jesse Glick 2004-05-01 00:31:32 UTC
Created attachment 14653 [details]
The patch
Comment 2 Jesse Glick 2004-05-01 16:11:55 UTC
Was I think the same situation in 3.6.

committed   * Up-To-Date  1.68        ant/manifest.mf
committed   * Up-To-Date  1.11        ant/api/doc/changes/apichanges.xml
committed   * Up-To-Date  1.9        
ant/src/org/apache/tools/ant/module/run/AntOutputParser.java
committed   * Up-To-Date  1.19       
ant/src/org/apache/tools/ant/module/run/OutputWriterOutputStream.java
committed   * Up-To-Date  1.6        
ant/src/org/apache/tools/ant/module/spi/AntOutputStream.java
Comment 3 Jaromir Uhrik 2005-07-14 16:20:41 UTC
Verified.