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

VerifyError when coercing at runtime a method that uses double or long

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.7
    • 2.2.3, 2.3.8, 2.4.0-beta-4
    • groovy-runtime
    • Occurs on
      Ubuntu 14.04.1 LTS x64
      Windows 8.1 x64
      both use Java 1.8.0u25

    Description

      The error occurs when the following code is executed.

      DoStuff.groovy
      trait DoStuff {
          public void doStuff(){
              println "doing stuff here"
          }
      }
      
      GBorderPane.groovy
      class GBorderPane extends javafx.scene.layout.BorderPane{
          public GBorderPane(){
              super()
          }
      }
      
      TraitsMain.groovy
      class TraitsMain {
      
          public static void main(String[] args) {
              println "Java version: "+System.getProperty("java.version")
              GBorderPane gp=new GBorderPane() as DoStuff // VerifyError here
          }
      }
      
      Exception in thread "main" java.lang.VerifyError: (class: GBorderPane1_groovyProxy, method: repaint signature: (JIIII)V) Stack size too large
      	at java.lang.Class.getDeclaredConstructors0(Native Method)
      	at java.lang.Class.privateGetDeclaredConstructors(Class.java:2663)
      	at java.lang.Class.getConstructor0(Class.java:3067)
      	at java.lang.Class.getConstructor(Class.java:1817)
      	at org.codehaus.groovy.runtime.ProxyGeneratorAdapter.<init>(ProxyGeneratorAdapter.java:192)
      	at groovy.util.ProxyGenerator.instantiateDelegateWithBaseClass(ProxyGenerator.java:221)
      	at groovy.util.ProxyGenerator.instantiateDelegateWithBaseClass(ProxyGenerator.java:189)
      	at groovy.util.ProxyGenerator.instantiateDelegate(ProxyGenerator.java:181)
      	at groovy.util.ProxyGenerator.instantiateDelegate(ProxyGenerator.java:177)
      	at org.codehaus.groovy.runtime.DefaultGroovyMethods.asType(DefaultGroovyMethods.java:12557)
      	at org.codehaus.groovy.runtime.dgm$48.doMethodInvoke(Unknown Source)
      	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1207)
      	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1016)
      	at org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHelper.java:901)
      	at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:884)
      	at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:166)
      	at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.asType(ScriptBytecodeAdapter.java:589)
      	at traits.TraitsMain.main(TraitsMain.groovy:10)
      

      Attachments

        Activity

          People

            melix Cédric Champeau
            thejeed David Weber
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: