groovy

Test faiing on Mac OS X with the latest JDK update

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.6.3, 1.7-beta-1
  • Fix Version/s: 1.6.4, 1.7-beta-1
  • Component/s: None
  • Labels:
    None
  • Environment:
    Mac OS X 10.5.7, with the latest JDK update from a few days ago (today = 24th of June 2009)
  • Number of attachments :
    0

Description

The test GroovyClassLoaderTest.groovy fails in testClassNotFoundIsNotHidden() on Java 6.
Oddly, if I specify a custom temporary folder for the generation of the Foo.groovy source file, the test passes! (although it shouldn't have an influence).
The temp folder looks like this on my setup: /var/folders/8M/8M-8rNARHJ4yfajR8c64nk+++TI/Tmp/

[junit] Testcase: testClassNotFoundIsNotHidden(groovy.lang.GroovyClassLoaderTest):	Caused an ERROR
    [junit] Foo4838700269643255605
    [junit] java.lang.ClassNotFoundException: Foo4838700269643255605
    [junit] 	at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    [junit] 	at java.security.AccessController.doPrivileged(Native Method)
    [junit] 	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    [junit] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
    [junit] 	at groovy.lang.GroovyClassLoader.loadClass(GroovyClassLoader.java:660)
    [junit] 	at groovy.lang.GroovyClassLoader.loadClass(GroovyClassLoader.java:756)
    [junit] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:254)
    [junit] 	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)
    [junit] 	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
    [junit] 	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
    [junit] 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)
    [junit] 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
    [junit] 	at groovy.lang.GroovyClassLoaderTest.testClassNotFoundIsNotHidden(GroovyClassLoaderTest.groovy:102)
    [junit] 
    [junit] 
    [junit] Test groovy.lang.GroovyClassLoaderTest FAILED

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: