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 47350 - [40cat] mdrstorage does not recover from damages.
Summary: [40cat] mdrstorage does not recover from damages.
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Tomas Hurka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-18 09:44 UTC by llturro
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
message.log (307.42 KB, text/plain)
2004-08-18 10:26 UTC, llturro
Details
DiffPrint.java (16.45 KB, text/plain)
2004-08-18 10:40 UTC, llturro
Details
Diff.java (29.33 KB, text/plain)
2004-08-18 10:41 UTC, llturro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description llturro 2004-08-18 09:44:29 UTC
[ BUILD # : 200408121535 ]
[ JDK VERSION : J2SE 1.4.2_04 ]

I was editing DiffPrint.java, kind of C++ ported to Java, when I got an exception. I copied one of the print classes to create HTML output, for a moment there were two classes with the same name. Then came the exception. 

From that moment, each time DiffPrint.java got into the editor, exceptions were thrown every minute, even after DiffPrint.java was closed. I was forced to restart NB.

The only way I could edit again that class was removing var/mdrstorage folder.
Comment 1 Milos Kleint 2004-08-18 09:46:35 UTC
reassigning to mdr.
Comment 2 Martin Matula 2004-08-18 09:56:30 UTC
Please provide the IDE log or stack traces, ideally also exact steps
to reproduce this. Otherwise this report won't help us to identify the
problem.
Comment 3 llturro 2004-08-18 10:26:40 UTC
Created attachment 16909 [details]
message.log
Comment 4 llturro 2004-08-18 10:39:43 UTC
This may help:

1) Create bmsi.util package.
2) Copy there DiffPrint.java and Diff.java
3) Edit DiffPrint.java
4) Give it a package directive. I used the same than GNU Diff.java,
bmsi.util.
5) Duplicate UnifiedPrint class. As though you want it as a template
for a new print class.
6) Rename it as XXXXPrint.

At that point an exception should already trown. 

BTW. Do you know any Diff alternative?
Comment 5 llturro 2004-08-18 10:40:23 UTC
Created attachment 16910 [details]
DiffPrint.java
Comment 6 llturro 2004-08-18 10:41:26 UTC
Created attachment 16911 [details]
Diff.java
Comment 7 Tomas Hurka 2004-08-18 15:34:56 UTC
Fixed in trunk.
Checking in org/netbeans/modules/javacore/scanning/JavaUpdater.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/scanning/JavaUpdater.java,v  
<--  JavaUpdater.java
new revision: 1.11; previous revision: 1.10
done
Comment 8 Quality Engineering 2007-09-20 10:48:55 UTC
Reorganization of java component