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

Summary: Cannot run java app with groovy class
Product: groovy Reporter: Lukas Jungmann <jungi>
Component: CodeAssignee: Jan Lahoda <jlahoda>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: sample app

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.