You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "John Wagenleitner (JIRA)" <ji...@apache.org> on 2017/08/28 04:25:00 UTC
[jira] [Resolved] (GROOVY-8303) VerifyError for nested class this
call to static method
[ https://issues.apache.org/jira/browse/GROOVY-8303?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Wagenleitner resolved GROOVY-8303.
---------------------------------------
Resolution: Fixed
Assignee: John Wagenleitner
Fix Version/s: 2.5.0-beta-2
> 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
> Assignee: John Wagenleitner
> Fix For: 2.5.0-beta-2
>
>
> {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)