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 78882 - Replace usage of ErrorManager for logging in java.* modules
Summary: Replace usage of ErrorManager for logging in java.* modules
Status: RESOLVED INVALID
Alias: None
Product: java
Classification: Unclassified
Component: Classpath (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on: 79580 81045 105421
Blocks:
  Show dependency tree
 
Reported: 2006-06-22 09:18 UTC by Jaroslav Tulach
Modified: 2016-05-25 06:06 UTC (History)
3 users (show)

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 Jaroslav Tulach 2006-06-22 09:18:40 UTC
It has been agreed, as part of issue 35067, that it is desirable to get rid of 
all usages of ErrorManager in the whole NetBeans IDE. The fix has just been 
done for platform (issue 78877) and all the necessary infrastructure and how 
to[1] is there to allow such removal to happen in other clusters as well.

This issue is created to track the removal of ErrorManager in modules placed 
in ideX cluster.

[1] 
http://www.netbeans.org/download/dev/javadoc/org-openide-util/org/openide/util/doc-files/logging.html
Comment 1 Jan Becicka 2007-07-16 12:55:05 UTC
I did my best to finish this task, but I'm not able to do it. I tried it 4 times in last 6 month. My 3 last attempts
ended with issues 79580,81045 and 105421.
This time I tried to remove ErrorManager usages with netbeans-jackpot.tar.gz. After several failures I finally run the
IDE with -Xmx1024m and run Jackpot rule with no errors. Unfortunately definitely not all (in fact only few) references
to ErrorManager was removed. Moreover the source is not compilable any more. I tried to run fix imports, but this tool
is unfortunately interactive and I really don't want to go through several hundreds of import dialogs, with vision of
partly fixed source, still containing ErrorManager references.

IDE cluster contains 104 modules. Please provide reliable "how to" for batch processing,or file issues for modules
owners to fix their code. Or reassign to smarter engineer.
Comment 2 Jaroslav Tulach 2007-07-20 09:13:40 UTC
Tomaši, Jan seems to be lost. Can you help him apply the tool you have successfully used to remove the EM dependencies 
for enterprise cluster?
Comment 3 Tomas Mysik 2007-07-20 14:29:05 UTC
Jardo, I'm sorry but I think I'm not able to give any special advice here - I just used that "special" build of 
NetBeans with my plugin (for fixing imports on package) and then I had to fix the rest by hand. I wouldn't agree that 
only few references were refactored but human work and control is necessary as well. I know that it's not ideal 
solution (I think that J2EE cluster has about 40 modules, it took me about one week?) but I'm pretty sure that using 
this was much better than doing it all by hand - at least for me.
So reassigning back.
Comment 4 Jan Becicka 2007-07-20 22:41:45 UTC
I'm not going to fix it.
Comment 5 novakm 2007-07-26 16:10:22 UTC
I am sorry, but I don't know where to reassign it from ide component. Any suggestion?
Comment 6 Jaroslav Tulach 2007-09-05 16:45:09 UTC
Hřebejk explained that there are more important issue to solve for 6.0
Comment 7 Quality Engineering 2008-11-18 16:36:37 UTC
Integrated into 'main-golden', will be available in build *200811181401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/32e062192e0e
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #78882: (partial) replacing some usages of o.o.ErrorManager with j.u.l.Logger. Automatic code transformation.
Comment 8 Rastislav Komara 2009-02-03 10:54:33 UTC
Overtake.
Comment 9 Quality Engineering 2009-03-31 19:54:32 UTC
Integrated into 'main-golden', will be available in build *200903311400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/643b376cbe4a
User: Rastislav Komara <moonko@netbeans.org>
Log: #78882: Removed from ElementOpen class.
Comment 10 Rastislav Komara 2009-05-18 16:03:59 UTC
java.source finished: jet-main: #926254e8d817

@jtulach: I don't know where to reassign. Please reassign to following module.
Comment 11 Jaroslav Tulach 2009-05-18 16:57:00 UTC
Hint for next time:
cd nbbuild/netbeans/ide11/
grep -r ErrorManager *
and you will see. Next winner is "java.classpath"
Comment 12 Quality Engineering 2009-05-19 07:31:16 UTC
Integrated into 'main-golden', will be available in build *200905190201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/926254e8d817
User: Rastislav Komara <moonko@netbeans.org>
Log: #78882: Replace usage of ErrorManager for logging in ide cluster
Comment 13 Quality Engineering 2009-05-29 19:51:57 UTC
Integrated into 'main-golden', will be available in build *200905291401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/7a4e58d55239
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #78882: (partial) eliminating most uses of o.o.ErrorManager in java.editor.
Comment 14 Tomas Zezula 2009-10-14 16:38:44 UTC
java.source jet-main 5f512ffee5e1
Comment 15 Tomas Zezula 2009-10-14 17:13:58 UTC
java.api.classpath fixed in jet-main 1627d2c7886c
Comment 16 Tomas Zezula 2009-10-15 10:12:48 UTC
java.platform + java.project jet-main 4be33cc6a39d
Comment 17 David Strupl 2012-10-25 13:41:39 UTC
Bug prior to 7.0, not touched for the last 2 years --> P4.