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

Tests containing @Grab statements within nested scripts fail in JDK12

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment