You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Piotr Zygielo (Jira)" <ji...@apache.org> on 2020/02/01 13:37:00 UTC

[jira] [Commented] (GROOVY-9211) BUG! UNCAUGHT EXCEPTION on OpenJDK14-ea+8

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

Piotr Zygielo commented on GROOVY-9211:
---------------------------------------

[~daniel_sun]:
{quote}Groovy 3.0.0 should support JDK 14, you can give it a try
{quote}
Standalone Groovy 3 (3.0.0-rc3) works fine with JDK 14 (14-ea+34-1452) indeed.

However I still have issue with compiling by groovy-eclipse-compiler - [https://travis-ci.org/pzrep/groovy-vmplugin-clinit/jobs/644742518#L1690.|https://travis-ci.org/pzrep/groovy-vmplugin-clinit/jobs/644742518#L1690]:
{quote}Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7
 at org.codehaus.groovy.vmplugin.VMPluginFactory.<clinit> (VMPluginFactory.java:43)
 at org.codehaus.groovy.ast.ClassHelper.makeCached (ClassHelper.java:158)
 at org.codehaus.groovy.ast.ClassHelper.<clinit> (ClassHelper.java:81)
 at org.codehaus.groovy.control.customizers.ImportCustomizer.addStaticStar (ImportCustomizer.java:115)
 at org.codehaus.groovy.control.customizers.ImportCustomizer.addStaticStars (ImportCustomizer.java:85)
 at org.codehaus.jdt.groovy.integration.internal.GroovyLanguageSupport.<clinit> ([GroovyLanguageSupport.java:118|https://github.com/groovy/groovy-eclipse/blob/ebfd4b4b18d4ed711fd7e1ebcd6b5b34ee1ac9fd/base/org.eclipse.jdt.groovy.core/src/org/codehaus/jdt/groovy/integration/internal/GroovyLanguageSupport.java#L118])
{quote}
So Daniel, [~emilles] -  do you think this is fixable in [ImportCustomizer.java|https://github.com/apache/groovy/blob/2b57d13c95da204e8883e2a50cc58658ab10abb2/src/main/java/org/codehaus/groovy/control/customizers/ImportCustomizer.java#L85] (ie. here) or shall new issue be opened against groovy-eclipse-compiler?

> BUG! UNCAUGHT EXCEPTION on OpenJDK14-ea+8
> -----------------------------------------
>
>                 Key: GROOVY-9211
>                 URL: https://issues.apache.org/jira/browse/GROOVY-9211
>             Project: Groovy
>          Issue Type: Bug
>    Affects Versions: 2.5.7
>         Environment: openjdk version "14-ea" 2020-03-17
> OpenJDK Runtime Environment (build 14-ea+8-255)
> OpenJDK 64-Bit Server VM (build 14-ea+8-255, mixed mode, sharing)
>            Reporter: Piotr Zygielo
>            Priority: Minor
>
> Change in JDK14 (ea+7..ea+8):
> [8173978: Lookup.in...|https://github.com/openjdk/jdk/commit/88d224f8f07#diff-7682d0273af974479e32f0f1d8684e63L782]
>  +
> [Java7.java|https://github.com/apache/groovy/blob/5917828e1f3550a674ff0c4a57e67438fcc4258a/src/main/java/org/codehaus/groovy/vmplugin/v7/Java7.java#L43]
> =
> {code:java}
> Exception org.codehaus.groovy.GroovyBugError: BUG! UNCAUGHT EXCEPTION: java.lang.invoke.MethodHandles$Lookup.<init>(java.lang.Class,int)
>       at Java7.<clinit> (Java7.java:45)
>       at NativeConstructorAccessorImpl.newInstance0 (Native Method)
>       at NativeConstructorAccessorImpl.newInstance (NativeConstructorAccessorImpl.java:62)
>       at DelegatingConstructorAccessorImpl.newInstance (DelegatingConstructorAccessorImpl.java:45)
>       at Constructor.newInstanceWithCaller (Constructor.java:500)
>       at ReflectAccess.newInstance (ReflectAccess.java:124)
>       at ReflectionFactory.newInstance (ReflectionFactory.java:346)
>       at Class.newInstance (Class.java:591)
>       at (#3:1)
> Caused by: java.lang.NoSuchMethodException: java.lang.invoke.MethodHandles$Lookup.<init>(java.lang.Class,int)
>       at Class.getConstructor0 (Class.java:3350)
>       at Class.getDeclaredConstructor (Class.java:2554)
>       at Java7.<clinit> (Java7.java:43)
> {code}
> It happens in my maven build, during {{VMPluginFactory.<clinit>}}
> I understand EA is EA, and even this given java is announced as build from the future, so this report is just to let you know.



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