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 139083

Summary: Cannot enable Groovy support in Java project
Product: groovy Reporter: dynamite <dynamite>
Component: CodeAssignee: martin_adamek <martin_adamek>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P1    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=61121
Issue Type: DEFECT Exception Reporter: 61121

Description dynamite 2008-07-05 18:44:51 UTC
The standard NetBeans Java project type has a checkbox in its properties to enable Groovy support.  However, this fails
with the exception below as does the attempt to create a new Groovy file in the project.

Build: NetBeans IDE Dev (Build 20080602042246)
VM: Java HotSpot(TM) Client VM, 10.0-b19, Java(TM) SE Runtime Environment, 1.6.0_05-b13
OS: Windows Vista, 6.0, x86
User comments: 
STACKTRACE: (first 10 lines)
java.lang.UnsupportedOperationException: Project in T:\JavaApplication11 of class
org.netbeans.modules.java.j2seproject.J2SEProject has a ProjectClassPathModifierImplementation but it will not handle
classpath/compile for T:\JavaApplication11
        at
org.netbeans.api.java.project.classpath.ProjectClassPathModifier.findExtensible(ProjectClassPathModifier.java:347)
        at org.netbeans.api.java.project.classpath.ProjectClassPathModifier.addLibraries(ProjectClassPathModifier.java:87)
        at org.netbeans.modules.groovy.support.GroovyProjectExtender.addClasspath(GroovyProjectExtender.java:116)
        at org.netbeans.modules.groovy.support.GroovyProjectExtender.enableGroovy(GroovyProjectExtender.java:95)
        at
org.netbeans.modules.groovy.support.customizer.GroovyCustomizer$StoreActionListener.actionPerformed(GroovyCustomizer.java:100)
        at org.netbeans.modules.project.uiapi.CustomizerDialog$OptionListener.storePerformed(CustomizerDialog.java:284)
        at org.netbeans.modules.project.uiapi.CustomizerDialog$OptionListener.access$400(CustomizerDialog.java:188)
        at org.netbeans.modules.project.uiapi.CustomizerDialog$OptionListener$2$1.run(CustomizerDialog.java:246)
        at org.openide.util.Mutex.writeAccess(Mutex.java:433)
        at org.openide.util.Mutex$1R.run(Mutex.java:1305)
Comment 1 Tomas Zezula 2008-07-07 12:56:35 UTC
ClassPathModifier has to be called with source root not project root T:\JavaApplication11
Comment 2 martin_adamek 2008-07-07 13:10:07 UTC
This has been already fixed in trunk. Please use latest build.
Comment 3 Lukas Jungmann 2008-09-29 14:26:16 UTC
v.