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

NPE when calling ServiceLoader.load with a variable

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: spifly-1.0.2
    • Fix Version/s: spifly-1.0.12
    • Component/s: SPI Fly
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: