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 48599 - ASLog keeps PrintWriters that are not neceseary
Summary: ASLog keeps PrintWriters that are not neceseary
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC All
: P4 blocker (vote)
Assignee: _ tball
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2004-09-07 15:19 UTC by _ rkubacki
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ rkubacki 2004-09-07 15:19:37 UTC
In my running IDE I see some insances of
BufferedWriter referenced through ASLog. Typicall
chain looks like this:

org.netbeans.modules.javacore.parser.ElementInfo$CachedReference.CACHE->
org.netbeans.modules.javacore.parser.ElementInfo$1@1029->
[Ljava.util.HashMap$Entry;@2a0b->
java.util.LinkedHashMap$Entry@4917->
org.netbeans.modules.javacore.parser.MDRParser@8a7c->
org.netbeans.lib.gjast.ASTopLevel@f67f->
org.netbeans.lib.gjast.ASParser$BridgeContext@18eb3->
org.netbeans.lib.gjast.ASScanner@23974->
org.netbeans.lib.gjast.ASLog@32320->
java.io.PrintWriter@4404d->
java.io.BufferedWriter@4edce

It seems to me that we don't need them as they are
created in com.sun.tools.javac.util.Log that sends
errors/warnings/messages to them but we override
this behaviour in ASLog so we keep 16400+40+40
bytes per ASLog in our parsed data but not use
these objects.
Comment 1 Martin Matula 2004-09-19 11:01:30 UTC
Reassigning to Tom for evaluation.
Comment 2 _ tball 2004-09-25 04:19:49 UTC
Created a DevNullWriter class to replace the BufferedWriter used by Log.