[
https://issues.apache.org/jira/browse/GROOVY-9211?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17091001#comment-17091001
]
Amit Chaudhary edited comment on GROOVY-9211 at 4/23/20, 11:03 PM:
-------------------------------------------------------------------
I am still facing an issue using groovy eclipse compiler.
{code:java}
<properties>
<java.version>14</java.version>
</properties>{code}
{code:java}
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
<version>2.5.0</version>
<type>pom</type>
</dependency>{code}
{code:java}
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<compilerId>groovy-eclipse-compiler</compilerId>
<source>14</source>
<target>14</target>
</configuration>
<dependencies>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-eclipse-compiler</artifactId>
<version>3.6.0-03</version>
</dependency>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-eclipse-batch</artifactId>
<version>3.0.3-01</version>
</dependency>
</dependencies>
</plugin>
{code}
{code:java}
--- maven-compiler-plugin:3.8.1:compile (default-compile) @ smoke-test ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e.
build is platform dependent!
[INFO] Using Groovy-Eclipse compiler to compile both Java and Groovy files
[INFO] source level should be in '1.1'...'1.8','9'...'11' (or '5.0'..'11.0'): 14
[INFO] Found 0 errors and 0 warnings.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.733 s
[INFO] Finished at: 2020-04-23T18:58:21-04:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile)
on project XXXXX: Compilation failure -> [Help 1]
{code}
was (Author: achaudhary16):
I am still facing an issue using groovy eclipse compiler.
{code:java}
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<compilerId>groovy-eclipse-compiler</compilerId>
<source>14</source>
<target>14</target>
</configuration>
<dependencies>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-eclipse-compiler</artifactId>
<version>3.6.0-03</version>
</dependency>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-eclipse-batch</artifactId>
<version>3.0.3-01</version>
</dependency>
</dependencies>
</plugin>
{code}
> 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
> Assignee: Paul King
> Priority: Minor
> Fix For: 2.5.10
>
> Time Spent: 1.5h
> Remaining Estimate: 0h
>
> 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)