Daniel Sun created GROOVY-9485: ---------------------------------- Summary: metaclass is not initialized Key: GROOVY-9485 URL: https://issues.apache.org/jira/browse/GROOVY-9485 Project: Groovy Issue Type: Bug Reporter: Daniel Sun Assignee: Daniel Sun Fix For: 4.0.0-alpha-1, 3.0.3
[https://github.com/apache/groovy/runs/540932897?check_suite_focus=true] {code:java} org.codehaus.groovy.tools.stubgenerator.ExceptionThrowingSuperConstructorTest > junit.framework.TestSuite$1.warning FAILED junit.framework.AssertionFailedError: Exception in constructor: testRun (java.lang.IllegalStateException: initialize must be called for meta class of class java.lang.System(class groovy.lang.MetaClassImpl) to complete initialisation process before any invocation or field/property access can be done at groovy.lang.MetaClassImpl.checkInitalised(MetaClassImpl.java:1696) at groovy.lang.MetaClassImpl.invokeStaticMethod(MetaClassImpl.java:1494) at org.codehaus.groovy.runtime.callsite.StaticMetaClassSite.call(StaticMetaClassSite.java:50) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:130) at org.codehaus.groovy.tools.stubgenerator.StubTestCase.createTempDirectory(StubTestCase.groovy:306) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:107) at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite$StaticMetaMethodSiteNoUnwrapNoCoerce.invoke(StaticMetaMethodSite.java:149) at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite.callStatic(StaticMetaMethodSite.java:100) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallStatic(CallSiteArray.java:55) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:217) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:222) at org.codehaus.groovy.tools.stubgenerator.StubTestCase.<init>(StubTestCase.groovy:60) at org.codehaus.groovy.tools.stubgenerator.StringSourcesStubTestCase.<init>(StringSourcesStubTestCase.groovy) at org.codehaus.groovy.tools.stubgenerator.ExceptionThrowingSuperConstructorTest.<init>(ExceptionThrowingSuperConstructorTest.groovy) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)