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.
[ 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.
reassigning to mdr.
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.
Created attachment 16909 [details] message.log
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?
Created attachment 16910 [details] DiffPrint.java
Created attachment 16911 [details] Diff.java
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
Reorganization of java component