Uploaded image for project: 'Aries'
  1. Aries
  2. ARIES-1321

NPE when calling ServiceLoader.load with a variable

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • spifly-1.0.2
    • spifly-1.0.12
    • SPI Fly
    • None

    Description

      When ServiceLoader is called with a variable (aka not a constant):

      aMethod(Class<T> type ){
      ServiceLoader.load(type).
      }

      Then the weaver result in a NPE in TCCLMethodVisitor because lastLDCType is null.

      Patch provided.

      Attachments

        Activity

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

          People

            bosschaert David Bosschaert
            cheleb Olivier NOUGUIER
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment