Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-9485

metaclass is not initialized

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0.0-alpha-1, 3.0.3, 2.5.11
    • None
    • None

    Description

      https://github.com/apache/groovy/runs/540932897?check_suite_focus=true

       

      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)
      

      Attachments

        Activity

          People

            daniel_sun Daniel Sun
            daniel_sun Daniel Sun
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: