I tried to format the following code using "Format with Jalopy" in Eclipse and got a "format failed" error. After that, any attemt to format anything resulted in a "no input source specified" error. I had to rip the Jalopy directory out of the Eclipse plug-ins folder and reinstall it in order to be able to use "Format with Jalopy" again.
Attached is the code that caused the "format failed" error. (I think the error was caused in lines 233-234 because when I commented out certain offensive-looking parts of these lines and tried to format the file again, it worked fine.)
Here are the details of the "no input source specified" error:
java.lang.IllegalStateException: no input source specified
at de.hunsicker.jalopy.Jalopy.format(Jalopy.java:1026)
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(Unknown Source)
Thanks,
Aaron
aaron.clark@bearingpoint.com
Here is the offending Java source file.