You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Daniel Sun (Jira)" <ji...@apache.org> on 2019/11/01 16:43:00 UTC

[jira] [Updated] (GROOVY-6809) VerifyError With Inner Class

     [ https://issues.apache.org/jira/browse/GROOVY-6809?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Sun updated GROOVY-6809:
-------------------------------
    Fix Version/s:     (was: 3.x)
                   3.0.0-rc-1

> VerifyError With Inner Class 
> -----------------------------
>
>                 Key: GROOVY-6809
>                 URL: https://issues.apache.org/jira/browse/GROOVY-6809
>             Project: Groovy
>          Issue Type: Bug
>          Components: Compiler
>    Affects Versions: 2.3.0, 2.4.0-beta-3
>            Reporter: Jeff Brown
>            Priority: Major
>             Fix For: 3.0.0-rc-1
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> The following code compiles but throws a VerifyError at runtime:
> {code:title=Test.groovy|borderStyle=solid}
> class Test {
>     static void main(String[] args) {
>         def a = new A()
>     }
>     static class A {
>         A() {
>             def b = new B()
>         }
>         void sayA() { println 'saying A' }
>         class B extends A {
>             public B() {
>                 super(A.this)
>                 sayA()
>             }
>         }
>     }
> }
> {code}
> I didn't go back through versions but I tested with 2.3.0 and that shows the problem.
> {noformat}
> Caught: java.lang.VerifyError: (class: Test$A$B, method: <init> signature: (LTest$A;)V) Expecting to find object/array on stack
> java.lang.VerifyError: (class: Test$A$B, method: <init> signature: (LTest$A;)V) Expecting to find object/array on stack
> 	at Test$A.<init>(Test.groovy:9)
> 	at Test.main(Test.groovy:4)
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)