Hi,
I checked out the Groovy scripting support from sandbox a couple of day ago and tried to build it.
Since the main code seems to be from about a year ago, there was at least one problem building it. Some changes to the cglib references needed.
When running the tests I do get a ClassCastException when trying to cast a bean to an DynamicObject.
java.lang.ClassCastException
at org.springframework.beans.factory.script.groovy.Gr oovyScriptFactoryContextTests.testDependencyOnRelo adedGroovyBean(GroovyScriptFactoryContextTests.jav a:67)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at junit.framework.TestCase.runTest(TestCase.java:154 )
at junit.framework.TestCase.runBare(TestCase.java:127 )
at junit.framework.TestResult$1.protect(TestResult.ja va:106)
at junit.framework.TestResult.runProtected(TestResult .java:124)
at junit.framework.TestResult.run(TestResult.java:109 )
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:2 08)
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRu nner.runTests(RemoteTestRunner.java:478)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRu nner.run(RemoteTestRunner.java:344)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRu nner.main(RemoteTestRunner.java:196)
Anyone has an idea?
I havent been able to make reloading a bean/object work, am I doing something wrong or isnt it suppose to work in the testcases.
Any help appreciated.
Kind Regards


Reply With Quote