groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (GROOVY-8303) VerifyError for nested class this call to static method
Date Sun, 27 Aug 2017 22:02:00 GMT

    [ https://issues.apache.org/jira/browse/GROOVY-8303?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16143236#comment-16143236
] 

ASF GitHub Bot commented on GROOVY-8303:
----------------------------------------

GitHub user jwagenleitner opened a pull request:

    https://github.com/apache/groovy/pull/593

    GROOVY-8303: VerifyError for nested class this call to static method

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/jwagenleitner/groovy 8303-VerifyError-Nested

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/groovy/pull/593.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #593
    
----
commit 29614bfa2ef1a3c57412b8148125d43b1911dc43
Author: John Wagenleitner <jwagenleitner@apache.org>
Date:   2017-08-27T21:23:29Z

    GROOVY-8303: VerifyError for nested class this call to static method

----


> VerifyError for nested class this call to static method
> -------------------------------------------------------
>
>                 Key: GROOVY-8303
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8303
>             Project: Groovy
>          Issue Type: Bug
>    Affects Versions: 2.5.0-beta-1
>            Reporter: John Wagenleitner
>
> {code}
> class Base {
>     static class Nested {
>         private String b
>         static String getData() { return "ABCD" }
>         Nested() { this(getData()) }
>         Nested(String b) { this.b = b }
>         String toString() { b }
>     }
> }
> assert new Base.Nested().toString() == 'ABCD'
> {code}
> Results in 
> {code}
> java.lang.VerifyError: (class: Base$Nested, method: <init> signature: ()V) Expecting
to find object/array on stack.
> {code}
> The same code works if a top-level class.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message