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 139381 - Cannot run java app with groovy class
Summary: Cannot run java app with groovy class
Status: VERIFIED FIXED
Alias: None
Product: groovy
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-09 12:30 UTC by Lukas Jungmann
Modified: 2008-10-30 14:24 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
sample app (11.88 KB, application/octet-stream)
2008-07-09 12:31 UTC, Lukas Jungmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Jungmann 2008-07-09 12:30:25 UTC
-open attached app
-run it

=>
execute:
Exception in thread "main" java.lang.ExceptionInInitializerError
        at testrestgenerators.Main.main(Main.java:22)
Caused by: java.lang.RuntimeException: Uncompilable source code - class FileHandler is public, should be declared in a
file named FileHandler.java
        at testrestgenerators.FileHandler.<clinit>(FileHandler.groovy:10)
        ... 1 more
Java Result: 1
BUILD SUCCESSFUL (total time: 0 seconds)


Workaround: open project properties -> Run and disable Enable Quick Run checkbox (clean&build seems to be required too)
Comment 1 Lukas Jungmann 2008-07-09 12:31:50 UTC
Created attachment 64164 [details]
sample app
Comment 2 Jan Lahoda 2008-07-30 06:46:03 UTC
Compile-on-save should be now automatically disabled when Groovy support is enabled:
http://hg.netbeans.org/main/rev/dbc9e2e6e85e
Comment 3 Lukas Jungmann 2008-08-07 13:42:52 UTC
v.