Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
1.8.9
-
None
-
$ java -version
java version "1.7.0_25"
OpenJDK Runtime Environment (fedora-2.3.10.4.fc18-x86_64)
OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)
Description
With openjdk using @Grab annotation causes groovy to usually freeze after artifacts have been downloaded. It is strange because I see artifacts being downloaded and if I comment out the @Grab annotation and manually specify -cp, then program works just fine. This started to happen for me at least a few months ago but can't relate it to anything specific that caused it.
When the app is frozen it actually takes 100% CPU time. From the thread dump I'm thinking it is looping through resolving proper classloader to insert grab dependencies.
With oracle JVM 6 and 7 I'm not experiencing the problem but I'm thinking that groovy might be relying on something oracle jvm specific and thus is looping infinitely.
Here is a simple app that reproduces the problem for me.