Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-9061

Tests containing @Grab statements within nested scripts fail in JDK12

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0-alpha-4, 2.5.6
    • 3.0.0-beta-1, 2.5.7
    • None
    • None

    Description

      Seems to be due to the class java.security.AccessController now appearing in the execution stack whereas it doesn't up until JDK11. This breaks the current logic for ReflectionUtils#getCallingClass that Grab uses to find the groovy class loader.

      Attachments

        Activity

          People

            paulk Paul King
            paulk Paul King
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: