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

[jira] [Commented] (GROOVY-9321) @CompileStatic on call of static method on interface (Java 8): VerifyError

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

Jochen Eddelbuettel commented on GROOVY-9321:
---------------------------------------------

No difference whether I pick my groovy jars from the indy or the lib directory of the distribution. Provided class file compiled with non-indy.

> @CompileStatic on call of static method on interface (Java 8): VerifyError
> --------------------------------------------------------------------------
>
>                 Key: GROOVY-9321
>                 URL: https://issues.apache.org/jira/browse/GROOVY-9321
>             Project: Groovy
>          Issue Type: Bug
>          Components: bytecode, Compiler
>    Affects Versions: 2.5.8, 3.0.0-rc-1
>         Environment: Oracle Java 1.8.0_112, IDEA CE 2019.1
>            Reporter: Jochen Eddelbuettel
>            Priority: Minor
>              Labels: @CompileStatic
>         Attachments: AgentTester.class, ErrorDetails.txt
>
>
> This is the rogue line
> def cfg = IDx4SessionPoolConfiguration.builder()
> Changing this to something more normal like
> {color:#172b4d}def cfg = new ConfigurationBuilder(){color}
> {color:#172b4d}fixes the problems. So does not compiling with @CompileStatic or running the code in a VM with -noverify option. The decompiled code looks jolly good in jd-gui.{color}
> {color:#172b4d}The problem does not exists in 2.4.15-indy{color}



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