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 98889 - Jalopy plugins fails to format code when class implements Serializable
Summary: Jalopy plugins fails to format code when class implements Serializable
Status: NEW
Alias: None
Product: contrib
Classification: Unclassified
Component: Jalopy (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: _ moser
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-25 08:00 UTC by tdeleeuw
Modified: 2007-07-26 16:18 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 tdeleeuw 2007-03-25 08:00:21 UTC
Jalopy available from dev update center (0.6.7 based on the module manager)
reports "unable to load ANNOTATIONS.<<MyClass>>.class, check your classpath.

It happends when the class implements an interface. Removing the interface,
formatting the code and restoring the interface works around this problem.

The full error is:
<<MyClass>>.java:0:0: Unable to load ANNOTATIONS.<<MyClass>>.class, check your
classpath
java.lang.ClassNotFoundException: ANNOTATIONS.<<MyClass>>
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at org.netbeans.ProxyClassLoader.loadInOrder(ProxyClassLoader.java:605)
        at org.netbeans.ProxyClassLoader.smartLoadClass(ProxyClassLoader.java:554)
        at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:173)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at de.hunsicker.util.Helper.loadClass(Helper.java:77)
        at de.hunsicker.util.Helper.loadClass(Helper.java:42)
        at
de.hunsicker.jalopy.language.SerializableTransformation.apply(SerializableTransformation.java:84)
        at
de.hunsicker.jalopy.language.JavaRecognizer.transform(JavaRecognizer.java:665)
        at
de.hunsicker.jalopy.language.JavaRecognizer.getParseTree(JavaRecognizer.java:184)
        at de.hunsicker.jalopy.Jalopy.parse(Jalopy.java:1272)
        at de.hunsicker.jalopy.Jalopy.format(Jalopy.java:1044)
        at de.hunsicker.jalopy.Jalopy.format(Jalopy.java:1017)
        at de.hunsicker.jalopy.plugin.AbstractPlugin.format(AbstractPlugin.java:549)
        at
de.hunsicker.jalopy.plugin.AbstractPlugin$ActionWorker.construct(AbstractPlugin.java:902)
        at de.hunsicker.swing.util.SwingWorker$2.call(SwingWorker.java:323)
        at de.hunsicker.util.concurrent.FutureResult$1.run(FutureResult.java:198)
        at de.hunsicker.swing.util.SwingWorker.run(SwingWorker.java:346)
        at java.lang.Thread.run(Thread.java:619)
Comment 1 novakm 2007-07-26 11:57:18 UTC
Reassigning to editor - formating for evaluation
Comment 2 Vitezslav Stejskal 2007-07-26 15:02:55 UTC
This is either a problem in the Jalopy library - http://jalopy.sourceforge.net/ - or in its Netbeans integration plugin,
which could be using an obsolete version of Jalopy. I'm not sure, who maintains the plugin, please ask on nbdev@ if you
want to make sure that this issue is going to be looked after. Reassigning to contrib module.
Comment 3 _ moser 2007-07-26 16:18:08 UTC
I'm the maintainer of the Jalopy integration plugin. 

Unfortunately the development speed at http://jalopy.sourceforge.net/jalopy/ has slowed down since Jalopy branched into
a free and a commercial version. From the website (http://jalopy.sourceforge.net/jalopy/changes-report.html):

1.5rc1  in CVS	
1.5b5 	Nov 18 2005	
1.5b3 	Oct 28 2005	
1.5b2 	2005-08-05	
1.5b1 	2005-06-05

In March 2006 I pulled RC2 from CVS and bundled it into the NB integration module. The most recent changes on their CVS
repository are three month old and comment on "Update to fix reported (pending) rc3 bugs". So finally there is hope for
an upcoming 1.5RC3.

Frank-Michael