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 172810 - Compile On Save causes runtime exception -- ClassFormatError -- method has illegal modifer
Summary: Compile On Save causes runtime exception -- ClassFormatError -- method has il...
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-22 20:12 UTC by cudbwrong
Modified: 2009-11-18 14:37 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Exception trace and links to source (2.05 KB, text/plain)
2009-09-22 20:17 UTC, cudbwrong
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cudbwrong 2009-09-22 20:12:29 UTC
When the "Compile On Save" option is enabled, class loading generates 
a runtime exception, even though the application launches successfully
from the command line using the jar file.  Netbeans version is 6.7.1.

There is no such exception using the same source with netbeans 6.0.1.

The application is the sample java app published by www.interactivebrokers.com
built according to the netbeans instructions in their getting started
document.  Links are in the attachments.
Comment 1 cudbwrong 2009-09-22 20:17:31 UTC
Created attachment 88146 [details]
Exception trace and links to source
Comment 2 cudbwrong 2009-09-22 20:20:12 UTC
The exception disappears when "Compile On Save" is
deselected and the project is cleaned and rebuilt.

The exception reappears if "Compile On Save" is 
enabled, and the project cleaned and rebuilt
again.

I'm building on a somewhat old and slow machine.
Could this be a race condition?  Just a thought.
Comment 3 Vojtech Sigler 2009-09-24 11:15:21 UTC
Reassigning to java for evaluation.
Comment 4 Dusan Balek 2009-10-26 11:22:53 UTC
Cannot reproduce the issue in the current dev build. It should be fixed together with issue #170738.
Comment 5 cudbwrong 2009-11-18 14:37:31 UTC
After several recent netbeans updates, including the IDE Platform plugin (to 1.6.4) I checked this again and the problem is no longer present, so I can confirm that it is resolved.