groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Sun (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (GROOVY-9211) BUG! UNCAUGHT EXCEPTION on OpenJDK14-ea+8
Date Sun, 04 Aug 2019 01:14:00 GMT

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

Daniel Sun commented on GROOVY-9211:
------------------------------------

It seems that {{java.lang.invoke.MethodHandles$Lookup.<init>(java.lang.Class,int)}}
is removed since Java14. The constructor is the key hack to access private members via indy.
That means Groovy probably has to forbidden accessing invisible members as Java wishes...

> 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
(v7.6.14#76016)

Mime
View raw message