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

[jira] [Comment Edited] (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=16983780#comment-16983780 ] 

Eric Milles edited comment on GROOVY-9321 at 11/27/19 6:00 PM:
---------------------------------------------------------------

Call to static method on interface requires target bytecode 1.8.  This was fixed recently in GROOVY-8930.  You can set the target bytecode version on the compiler using a command line option or through CompilerConfiguration.


was (Author: emilles):
Call to static method on interface requires target bytecode 1.8.  This was fixed recently in GROOVY-8930.

> @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
>             Fix For: 2.5.9, 3.0.0-rc-2
>
>         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)