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

2020-04-23 Thread Amit Chaudhary (Jira)


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

Amit Chaudhary commented on GROOVY-9211:


I am still facing an issue using groovy eclipse compiler.
{code:java}

   maven-compiler-plugin
   3.8.1
 
  groovy-eclipse-compiler
  14
  14
  
   
  
  org.codehaus.groovy
  groovy-eclipse-compiler
  3.6.0-03
  
  
  org.codehaus.groovy
  groovy-eclipse-batch
  3.0.3-01
  
   
  
{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.(java.lang.Class,int)
>   at Java7. (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.(java.lang.Class,int)
>   at Class.getConstructor0 (Class.java:3350)
>   at Class.getDeclaredConstructor (Class.java:2554)
>   at Java7. (Java7.java:43)
> {code}
> It happens in my maven build, during {{VMPluginFactory.}}
> 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)


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

2020-02-12 Thread Paul King (Jira)


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

Paul King commented on GROOVY-9211:
---

I have done some testing with JDK15 (build 15-ea+7-164) but not extensive.

> 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.(java.lang.Class,int)
>   at Java7. (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.(java.lang.Class,int)
>   at Class.getConstructor0 (Class.java:3350)
>   at Class.getDeclaredConstructor (Class.java:2554)
>   at Java7. (Java7.java:43)
> {code}
> It happens in my maven build, during {{VMPluginFactory.}}
> 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)


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

2020-02-12 Thread Daniel Sun (Jira)


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

Daniel Sun commented on GROOVY-9211:


[~AlanBateman] 
FYI. 
http://groovy.329449.n5.nabble.com/About-the-binary-distribution-of-3-0-0-GA-tp5765123.html
We have not tested with JDK 15 EA yet, but you can give it a try ;-)


> 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.(java.lang.Class,int)
>   at Java7. (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.(java.lang.Class,int)
>   at Class.getConstructor0 (Class.java:3350)
>   at Class.getDeclaredConstructor (Class.java:2554)
>   at Java7. (Java7.java:43)
> {code}
> It happens in my maven build, during {{VMPluginFactory.}}
> 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)


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

2020-02-12 Thread Alan Bateman (Jira)


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

Alan Bateman commented on GROOVY-9211:
--

It's great to find that there is a Groovy release that works with JDK 14. Are 
the Groovy team also testing with JDK 15 EA builds?

> 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.(java.lang.Class,int)
>   at Java7. (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.(java.lang.Class,int)
>   at Class.getConstructor0 (Class.java:3350)
>   at Class.getDeclaredConstructor (Class.java:2554)
>   at Java7. (Java7.java:43)
> {code}
> It happens in my maven build, during {{VMPluginFactory.}}
> 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)


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

2020-02-11 Thread Piotr Zygielo (Jira)


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

Piotr Zygielo commented on GROOVY-9211:
---

[~emilles] - thanks for details. I just want to confirm, probably well-known 
already, that Groovy 3 with batch 3.0.0-01 works fine in JDK14. Thank you.

> 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.(java.lang.Class,int)
>   at Java7. (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.(java.lang.Class,int)
>   at Class.getConstructor0 (Class.java:3350)
>   at Class.getDeclaredConstructor (Class.java:2554)
>   at Java7. (Java7.java:43)
> {code}
> It happens in my maven build, during {{VMPluginFactory.}}
> 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)


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

2020-02-03 Thread Eric Milles (Jira)


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

Eric Milles commented on GROOVY-9211:
-

[~pzygielo] I can try to answer groovy-eclipse questions on the mailing list or 
on the groovy-eclipse issues page on github.  It sounds like you are using 
groovy-eclipse-batch-2.5.x and groovy-3.0.0.  This combination is likely to 
cause issues, since binary compatibility is not 100%.

ImportCustomizer is not the problem, it is using ClassHelper to make a 
ClassNode for an import and then the vmplugin code is running into some missing 
classes that Groovy 3 provides but Groovy 2.5 does not.

> 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.(java.lang.Class,int)
>   at Java7. (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.(java.lang.Class,int)
>   at Class.getConstructor0 (Class.java:3350)
>   at Class.getDeclaredConstructor (Class.java:2554)
>   at Java7. (Java7.java:43)
> {code}
> It happens in my maven build, during {{VMPluginFactory.}}
> 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)


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

2020-02-02 Thread Piotr Zygielo (Jira)


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

Piotr Zygielo commented on GROOVY-9211:
---

[~daniel_sun], [~emilles] - knowing that my expectations have to be adjusted, I 
think that it will be fine, when corresponding g-e-batch 3.x is released. I'm 
waiting to check that, once something is published :).

> 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.(java.lang.Class,int)
>   at Java7. (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.(java.lang.Class,int)
>   at Class.getConstructor0 (Class.java:3350)
>   at Class.getDeclaredConstructor (Class.java:2554)
>   at Java7. (Java7.java:43)
> {code}
> It happens in my maven build, during {{VMPluginFactory.}}
> 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)


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

2020-02-01 Thread Daniel Sun (Jira)


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

Daniel Sun commented on GROOVY-9211:


[~emilles] is an expert for groovy-eclipse-compiler, I think he can answer the 
quesion ;)

> 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.(java.lang.Class,int)
>   at Java7. (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.(java.lang.Class,int)
>   at Class.getConstructor0 (Class.java:3350)
>   at Class.getDeclaredConstructor (Class.java:2554)
>   at Java7. (Java7.java:43)
> {code}
> It happens in my maven build, during {{VMPluginFactory.}}
> 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)


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

2020-02-01 Thread Piotr Zygielo (Jira)


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

Piotr Zygielo commented on GROOVY-9211:
---

As for groovy-eclipse-compiler. It seems that
{code:bash}
jar tf groovy-eclipse-batch-2.5.9-01.jar | grep ImportCustomizer
org/codehaus/groovy/control/customizers/ImportCustomizer$1.class
org/codehaus/groovy/control/customizers/ImportCustomizer$Import.class
org/codehaus/groovy/control/customizers/ImportCustomizer$ImportType.class
org/codehaus/groovy/control/customizers/ImportCustomizer.class
{code}
I believed groovy' classes (incl. ImportCustomizer) were found from dependency, 
but in fact they are bundled in batch.

> 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.(java.lang.Class,int)
>   at Java7. (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.(java.lang.Class,int)
>   at Class.getConstructor0 (Class.java:3350)
>   at Class.getDeclaredConstructor (Class.java:2554)
>   at Java7. (Java7.java:43)
> {code}
> It happens in my maven build, during {{VMPluginFactory.}}
> 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)


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

2020-02-01 Thread Piotr Zygielo (Jira)


[ 
https://issues.apache.org/jira/browse/GROOVY-9211?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=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. 
(VMPluginFactory.java:43)
 at org.codehaus.groovy.ast.ClassHelper.makeCached (ClassHelper.java:158)
 at org.codehaus.groovy.ast.ClassHelper. (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. 
([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.(java.lang.Class,int)
>   at Java7. (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.(java.lang.Class,int)
>   at Class.getConstructor0 (Class.java:3350)
>   at Class.getDeclaredConstructor (Class.java:2554)
>   at Java7. (Java7.java:43)
> {code}
> It happens in my maven build, during {{VMPluginFactory.}}
> 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)


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

2020-01-28 Thread Paul King (Jira)


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

Paul King commented on GROOVY-9211:
---

[~XDR] It depends on how much individual projects decide to tackle as part of 
moving to Groovy 3.0.

As just one example, as part of JDK9+ package naming conventions within 
modules, {{groovy.util.XmlParser}} must eventually be renamed to 
{{groovy.xml.XmlParser}}, otherwise there would be a {{groovy.util}} package in 
both the {{groovy}} and {{groovy-xml}} modules. For Groovy 3.0, Groovy's 
"modular jars" aren't strictly conforming to JDK modules and we in fact have 
both classes available. So, for a project like Gradle or CodeNarc or whatever, 
if it happens to use {{XmlParser}}, it could decide to do very little now and 
use the old class (but have some work to do when moving to Groovy 4) or can do 
a little more now to avoid extra work later.

> 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.(java.lang.Class,int)
>   at Java7. (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.(java.lang.Class,int)
>   at Class.getConstructor0 (Class.java:3350)
>   at Class.getDeclaredConstructor (Class.java:2554)
>   at Java7. (Java7.java:43)
> {code}
> It happens in my maven build, during {{VMPluginFactory.}}
> 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)


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

2020-01-28 Thread Ross Goldberg (Jira)


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

Ross Goldberg commented on GROOVY-9211:
---

[~paulk] Thanks for the heads up.

Do you think that upgrading to Groovy 3.0 will take Gradle (or other tools) a 
long time?

Will Groovy 3.0 necessitate backwards-incompatible changes?

Thanks again.

> 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.(java.lang.Class,int)
>   at Java7. (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.(java.lang.Class,int)
>   at Class.getConstructor0 (Class.java:3350)
>   at Class.getDeclaredConstructor (Class.java:2554)
>   at Java7. (Java7.java:43)
> {code}
> It happens in my maven build, during {{VMPluginFactory.}}
> 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)


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

2020-01-28 Thread Paul King (Jira)


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

Paul King commented on GROOVY-9211:
---

[~russgold] We are very close to hitting the go button for 3.0.0 GA. We have 
someone looking at Antlr4 parsing performance. Depending on how that goes we'll 
make a call on hitting the go button. I am expecting we'll have better 
information in no more than a week or two. We are also working on a couple of 
other bugs in parallel.

> 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.(java.lang.Class,int)
>   at Java7. (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.(java.lang.Class,int)
>   at Class.getConstructor0 (Class.java:3350)
>   at Class.getDeclaredConstructor (Class.java:2554)
>   at Java7. (Java7.java:43)
> {code}
> It happens in my maven build, during {{VMPluginFactory.}}
> 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)


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

2020-01-28 Thread Ross Goldberg (Jira)


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

Ross Goldberg commented on GROOVY-9211:
---

What is the expected release schedule for Groovy 3.0?

> 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.(java.lang.Class,int)
>   at Java7. (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.(java.lang.Class,int)
>   at Class.getConstructor0 (Class.java:3350)
>   at Class.getDeclaredConstructor (Class.java:2554)
>   at Java7. (Java7.java:43)
> {code}
> It happens in my maven build, during {{VMPluginFactory.}}
> 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)


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

2020-01-28 Thread Daniel Sun (Jira)


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

Daniel Sun commented on GROOVY-9211:


Supporting JDK9+ is the goal of Groovy 3+, and the relevant changes is not 
trivial, so I think we will not port the changes to 2.5.x.

> 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.(java.lang.Class,int)
>   at Java7. (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.(java.lang.Class,int)
>   at Class.getConstructor0 (Class.java:3350)
>   at Class.getDeclaredConstructor (Class.java:2554)
>   at Java7. (Java7.java:43)
> {code}
> It happens in my maven build, during {{VMPluginFactory.}}
> 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)


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

2020-01-27 Thread Christoph Dreis (Jira)


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

Christoph Dreis commented on GROOVY-9211:
-

Thanks, but to the best of my knowledge 3.0.0 is not GA, yet!? Personally, I'm 
more blocked by the Gradle issue 
([https://github.com/gradle/gradle/issues/10248]) mentioned in a previous 
comment. Gradle 6.1.1 uses Groovy 2.5.8, so the real question is if there are 
any plans to backport the JDK 14 support to 2.5.x (which was also asked in 
multiple previous comments)? I should have been more specific, sorry.

> 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.(java.lang.Class,int)
>   at Java7. (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.(java.lang.Class,int)
>   at Class.getConstructor0 (Class.java:3350)
>   at Class.getDeclaredConstructor (Class.java:2554)
>   at Java7. (Java7.java:43)
> {code}
> It happens in my maven build, during {{VMPluginFactory.}}
> 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)


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

2020-01-27 Thread Daniel Sun (Jira)


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

Daniel Sun commented on GROOVY-9211:


[~christoph.dreis] Groovy 3.0.0 should support JDK 14, you can give it a try ;)

> 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.(java.lang.Class,int)
>   at Java7. (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.(java.lang.Class,int)
>   at Class.getConstructor0 (Class.java:3350)
>   at Class.getDeclaredConstructor (Class.java:2554)
>   at Java7. (Java7.java:43)
> {code}
> It happens in my maven build, during {{VMPluginFactory.}}
> 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)


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

2020-01-27 Thread Christoph Dreis (Jira)


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

Christoph Dreis commented on GROOVY-9211:
-

Hi everybody. Is there any progress on this, given that JDK 14 is approaching?

> 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.(java.lang.Class,int)
>   at Java7. (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.(java.lang.Class,int)
>   at Class.getConstructor0 (Class.java:3350)
>   at Class.getDeclaredConstructor (Class.java:2554)
>   at Java7. (Java7.java:43)
> {code}
> It happens in my maven build, during {{VMPluginFactory.}}
> 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)


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

2019-11-27 Thread Ross Goldberg (Jira)


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

Ross Goldberg commented on GROOVY-9211:
---

Given that 2.5.x uses ASM 7.2 (current, and which should support Java 14), will 
Java 14 support be backported to 2.5.x?

[~emilles] Thanks for the ASM version info.

> 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.(java.lang.Class,int)
>   at Java7. (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.(java.lang.Class,int)
>   at Class.getConstructor0 (Class.java:3350)
>   at Class.getDeclaredConstructor (Class.java:2554)
>   at Java7. (Java7.java:43)
> {code}
> It happens in my maven build, during {{VMPluginFactory.}}
> 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)


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

2019-11-27 Thread Eric Milles (Jira)


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

Eric Milles commented on GROOVY-9211:
-

[~XDR] Groovy 2.5 uses ASM 7.2 and GROOVY-9271 is in progress with an open pull 
request to update Groovy 2.4 to ASM 7.1 or 7.2.

> 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.(java.lang.Class,int)
>   at Java7. (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.(java.lang.Class,int)
>   at Class.getConstructor0 (Class.java:3350)
>   at Class.getDeclaredConstructor (Class.java:2554)
>   at Java7. (Java7.java:43)
> {code}
> It happens in my maven build, during {{VMPluginFactory.}}
> 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)


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

2019-11-06 Thread Ross Goldberg (Jira)


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

Ross Goldberg commented on GROOVY-9211:
---

Will ASM ever be updated for 2.x so this fix can be backported?

> 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.(java.lang.Class,int)
>   at Java7. (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.(java.lang.Class,int)
>   at Class.getConstructor0 (Class.java:3350)
>   at Class.getDeclaredConstructor (Class.java:2554)
>   at Java7. (Java7.java:43)
> {code}
> It happens in my maven build, during {{VMPluginFactory.}}
> 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)


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

2019-08-15 Thread Daniel Sun (JIRA)


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

Daniel Sun commented on GROOVY-9211:


Nice!

> 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.(java.lang.Class,int)
>   at Java7. (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.(java.lang.Class,int)
>   at Class.getConstructor0 (Class.java:3350)
>   at Class.getDeclaredConstructor (Class.java:2554)
>   at Java7. (Java7.java:43)
> {code}
> It happens in my maven build, during {{VMPluginFactory.}}
> 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)


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

2019-08-15 Thread Paul King (JIRA)


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

Paul King commented on GROOVY-9211:
---

[~blackdrag] Yes, true - I had accidentally tried an experiment with 
3.0.0-beta-2 which is missing the Java9 class but it worked fine with beta-3.

> 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.(java.lang.Class,int)
>   at Java7. (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.(java.lang.Class,int)
>   at Class.getConstructor0 (Class.java:3350)
>   at Class.getDeclaredConstructor (Class.java:2554)
>   at Java7. (Java7.java:43)
> {code}
> It happens in my maven build, during {{VMPluginFactory.}}
> 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)


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

2019-08-14 Thread Jochen Theodorou (JIRA)


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

Jochen Theodorou commented on GROOVY-9211:
--

[~paulk] Groovy 3 should not have the problem

> 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.(java.lang.Class,int)
>   at Java7. (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.(java.lang.Class,int)
>   at Class.getConstructor0 (Class.java:3350)
>   at Class.getDeclaredConstructor (Class.java:2554)
>   at Java7. (Java7.java:43)
> {code}
> It happens in my maven build, during {{VMPluginFactory.}}
> 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)


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

2019-08-14 Thread Paul King (JIRA)


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

Paul King commented on GROOVY-9211:
---

Well 2.5 currently doesn't use a version of ASM that knows about JDK 14 so it's 
a bigger task than just balloting GROOVY-8843. But we should at least fix 3 for 
now.

> 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.(java.lang.Class,int)
>   at Java7. (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.(java.lang.Class,int)
>   at Class.getConstructor0 (Class.java:3350)
>   at Class.getDeclaredConstructor (Class.java:2554)
>   at Java7. (Java7.java:43)
> {code}
> It happens in my maven build, during {{VMPluginFactory.}}
> 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)


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

2019-08-13 Thread Russell Gold (JIRA)


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

Russell Gold commented on GROOVY-9211:
--

[ Jochen 
Theodorou|https://issues.apache.org/jira/secure/ViewProfile.jspa?name=blackdrag]
 no, you are correct. It is jdk.unsupported

> 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.(java.lang.Class,int)
>   at Java7. (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.(java.lang.Class,int)
>   at Class.getConstructor0 (Class.java:3350)
>   at Class.getDeclaredConstructor (Class.java:2554)
>   at Java7. (Java7.java:43)
> {code}
> It happens in my maven build, during {{VMPluginFactory.}}
> 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)


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

2019-08-13 Thread Mandy Chung (JIRA)


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

Mandy Chung commented on GROOVY-9211:
-

[~blackdrag] LookupHolder was added in GROOVY-8843.  The class initialization 
issue I reproduced is with Groovy 2.5.8.   You should try groovy with 
GROOVY-8843 with JDK 14 EA and see what issues may come up.  It reads to me 
that Groovy still replies on the Lookup constructor to create a Lookup object 
(getLookupConstructor).  Hope this helps.

> 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.(java.lang.Class,int)
>   at Java7. (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.(java.lang.Class,int)
>   at Class.getConstructor0 (Class.java:3350)
>   at Class.getDeclaredConstructor (Class.java:2554)
>   at Java7. (Java7.java:43)
> {code}
> It happens in my maven build, during {{VMPluginFactory.}}
> 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)


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

2019-08-13 Thread Alan Bateman (JIRA)


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

Alan Bateman commented on GROOVY-9211:
--

Jochen - I think the hierarchy (Java9 <: Java8 <: Java 7) or class initializers 
will need to be re-examined as the attempt to load and create an instance of 
Java9 will trigger the loading and initialization of its super-classes. 
VMPlugin is catching the exception (GroovyBugError with cause 
NoSuchMethodException) and then attempts to create an instance of Java8 which 
has to fail because the initializer previously failed.

> 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.(java.lang.Class,int)
>   at Java7. (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.(java.lang.Class,int)
>   at Class.getConstructor0 (Class.java:3350)
>   at Class.getDeclaredConstructor (Class.java:2554)
>   at Java7. (Java7.java:43)
> {code}
> It happens in my maven build, during {{VMPluginFactory.}}
> 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)


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

2019-08-13 Thread Jochen Theodorou (JIRA)


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

Jochen Theodorou commented on GROOVY-9211:
--

[~daniel_sun] yes, lets try it. I think it covers most cases. For as long as 
Groovy is not running as named module it should work. So I guess it is no issue 
for Java8, where there is no module system at all. But why does the code 
actually fail? See my question to Alan.
[~russgold] java.unsupported... I know jdk.unsupported, java.unsupported is 
something you chose I assume. If not, do you have some documentation on that? 
Thanks for the code.

[~AlanBateman] Actually after looking into the gradle side of the report it is 
not that we don't want to use it. The Class initialization does not work as 
expected. I mean why is a NoClassDefFoundError thrown at all? Sure, I can 
understand, that if during the classloading of Java9, Java8 is loaded, which 
loads Java7 and then Java7.LookupHolder fails to init causing the exception (at 
least I vaguely remember that failing init of a dependent class causes this 
exception - which I find wrong btw). The question though is, why is that inner 
class initialized? The code in 
https://github.com/apache/groovy/blob/62ab65a7fcc4a63e9d8fdf920fe20b81afaf7138/src/main/java/org/codehaus/groovy/vmplugin/VMPluginFactory.java#L56
 should not have caused that, should it?

> 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.(java.lang.Class,int)
>   at Java7. (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.(java.lang.Class,int)
>   at Class.getConstructor0 (Class.java:3350)
>   at Class.getDeclaredConstructor (Class.java:2554)
>   at Java7. (Java7.java:43)
> {code}
> It happens in my maven build, during {{VMPluginFactory.}}
> 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)


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

2019-08-13 Thread Russell Gold (JIRA)


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

Russell Gold commented on GROOVY-9211:
--

Take a look in project [https://github.com/meterware/simplestub] at the 
FieldUtils class (there is a version for JDK8 and one for JDK9, using the 
MR-JAR strategy). It provides a way (using the java.unsupported module) to 
access private fields. This API is required for serialization, so will probably 
replaced in the future with something better. 

> 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.(java.lang.Class,int)
>   at Java7. (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.(java.lang.Class,int)
>   at Class.getConstructor0 (Class.java:3350)
>   at Class.getDeclaredConstructor (Class.java:2554)
>   at Java7. (Java7.java:43)
> {code}
> It happens in my maven build, during {{VMPluginFactory.}}
> 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)


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

2019-08-13 Thread Daniel Sun (JIRA)


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

Daniel Sun commented on GROOVY-9211:


[~blackdrag] 
As Mandy said, {{org.codehaus.groovy.vmplugin.v9.Java9#of}} should continue 
working in Java14, but only Groovy 3+ will work.

> 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.(java.lang.Class,int)
>   at Java7. (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.(java.lang.Class,int)
>   at Class.getConstructor0 (Class.java:3350)
>   at Class.getDeclaredConstructor (Class.java:2554)
>   at Java7. (Java7.java:43)
> {code}
> It happens in my maven build, during {{VMPluginFactory.}}
> 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)


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

2019-08-13 Thread Alan Bateman (JIRA)


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

Alan Bateman commented on GROOVY-9211:
--

This issue impacts Gradle, see 
[GRADLE-10248|https://github.com/gradle/gradle/issues/10248]

It's way too fragile for Groovy to be depending on Lookup's private constructor 
as private members can change or disappear at any time (as has happened in JDK 
14 when this code was significantly changed). What is Groovy trying to do? The 
code in vmplugin.v9.Java9 seems to be doing the right thing and using 
privateLookupIn to get a full power Lookup on the target class and it's not 
clear why this code isn't being used when running on JDK 9 and newer.

> 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.(java.lang.Class,int)
>   at Java7. (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.(java.lang.Class,int)
>   at Class.getConstructor0 (Class.java:3350)
>   at Class.getDeclaredConstructor (Class.java:2554)
>   at Java7. (Java7.java:43)
> {code}
> It happens in my maven build, during {{VMPluginFactory.}}
> 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)


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

2019-08-12 Thread Mandy Chung (JIRA)


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

Mandy Chung commented on GROOVY-9211:
-

Looks like org.codehaus.groovy.vmplugin.v9.Java9 intends to use the public API 
`MethodHandles::privateLookupIn`.     It should continue to work in 14.   So 
groovy should migrate to call `Java9.of` to get the Lookup instance rather than 
calling the private constructor.

Java9 is a subclass of Java8 which extends Java7.  Since the private 
Lookup(Class, int) constructor no longer exists, Java7:: throws 
GroovyBugError.   It is a wrong assumption that the internal API exists in 
Java7 continues to exist in a future release.

 

> 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.(java.lang.Class,int)
>   at Java7. (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.(java.lang.Class,int)
>   at Class.getConstructor0 (Class.java:3350)
>   at Class.getDeclaredConstructor (Class.java:2554)
>   at Java7. (Java7.java:43)
> {code}
> It happens in my maven build, during {{VMPluginFactory.}}
> 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)


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

2019-08-05 Thread Daniel Sun (JIRA)


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

Daniel Sun commented on GROOVY-9211:


[~blackdrag] We have to remove the usage of internal API in some future 
release(e.g. Groovy 4)... Also, we should make users get used to not accessing 
invisible members over time... To be frank, accessing invisible members in some 
tests are really useful IMO.

> 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.(java.lang.Class,int)
>   at Java7. (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.(java.lang.Class,int)
>   at Class.getConstructor0 (Class.java:3350)
>   at Class.getDeclaredConstructor (Class.java:2554)
>   at Java7. (Java7.java:43)
> {code}
> It happens in my maven build, during {{VMPluginFactory.}}
> 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)


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

2019-08-04 Thread Jochen Theodorou (JIRA)


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

Jochen Theodorou commented on GROOVY-9211:
--

strongly forbidding access to this constructor is on the list for the guys for 
a longer time already. If not some others and myself have used the list to make 
them aware that this is a problem.
For the module system we have a weak story here... But this is for JDK8. 
Arguably this can be considered a bug somewhat. Yes, it is internal API. But we 
are not the only ones using that.
As for the key hack for Groovy to access non-private members in non-Groovy 
classes. In Groovy classes we produce a accessible helper method. Thus it is 
limited to Java classes (or should be). Since we cannot simply produce helper 
methods for these cases we do have the problem, that we have to either follow 
Java rules here, or generate helper by instrumentation. The usage the hack 
should be removed for newer JDK... or isn't it already? 

> 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.(java.lang.Class,int)
>   at Java7. (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.(java.lang.Class,int)
>   at Class.getConstructor0 (Class.java:3350)
>   at Class.getDeclaredConstructor (Class.java:2554)
>   at Java7. (Java7.java:43)
> {code}
> It happens in my maven build, during {{VMPluginFactory.}}
> 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)


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

2019-08-04 Thread Daniel Sun (JIRA)


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

Daniel Sun commented on GROOVY-9211:


Gotcha. Thanks :-)

> 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.(java.lang.Class,int)
>   at Java7. (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.(java.lang.Class,int)
>   at Class.getConstructor0 (Class.java:3350)
>   at Class.getDeclaredConstructor (Class.java:2554)
>   at Java7. (Java7.java:43)
> {code}
> It happens in my maven build, during {{VMPluginFactory.}}
> 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)


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

2019-08-04 Thread Piotr Zygielo (JIRA)


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

Piotr Zygielo commented on GROOVY-9211:
---

{quote}It seems that 
java.lang.invoke.MethodHandles$Lookup.(java.lang.Class,int) is removed 
since Java14
{quote}

Only since ea-8-255, it was there in ea-7-204.

I kind of _hoped_ it's very limited issue. I just forgot about other tools 
using groovy - they just stopped working after this JDK update (ea-8). So if 
someone has build setup to ensure compilability with JDK14, it will fail, for 
example gradle - the same way:

{quote}206 For more details see https://docs.gradle.org/5.5.1/release-notes.html
207
208 Starting a Gradle Daemon (subsequent builds will be faster)
209 java.lang.NoClassDefFoundError: Could not initialize class 
org.codehaus.groovy.vmplugin.v7.Java7
210 at 
org.codehaus.groovy.vmplugin.VMPluginFactory.(VMPluginFactory.java:43)
{quote}

> 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.(java.lang.Class,int)
>   at Java7. (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.(java.lang.Class,int)
>   at Class.getConstructor0 (Class.java:3350)
>   at Class.getDeclaredConstructor (Class.java:2554)
>   at Java7. (Java7.java:43)
> {code}
> It happens in my maven build, during {{VMPluginFactory.}}
> 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)


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

2019-08-03 Thread Daniel Sun (JIRA)


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

Daniel Sun commented on GROOVY-9211:


It seems that 
{{java.lang.invoke.MethodHandles$Lookup.(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.(java.lang.Class,int)
>   at Java7. (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.(java.lang.Class,int)
>   at Class.getConstructor0 (Class.java:3350)
>   at Class.getDeclaredConstructor (Class.java:2554)
>   at Java7. (Java7.java:43)
> {code}
> It happens in my maven build, during {{VMPluginFactory.}}
> 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)