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

NPE when calling ServiceLoader.load with a variable

    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

        1. ARIES-1321.diff
          3 kB
          Olivier NOUGUIER

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: