Uploaded image for project: 'Service Design and Creation'
  1. Service Design and Creation
  2. SDC-3379

Refactor TCs to remove/replace usage of outdated library JMockit

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Medium Medium
    • Montreal Release
    • None
    • SDC

      Referred library mostly used to run 'private' methods by executing 'Deencapsulation.invoke'

      Support of this functionality has been removed since
      Version 1.36 (Oct 29, 2017):

      Removed the "invoke" and "newInstance" methods from the Deencapsulation class, deprecated in version 1.35.

      https://jmockit.github.io/changes.html#1.36

      With migration of SDC to Java 11 running TCs, using this library, produce

      java.lang.IllegalStateException: Running on JDK 9 requires -javaagent:<proper path>/jmockit-1.n.jar or -Djdk.attach.allowAttachSelf

      Aim of this task is to remove/replace usage of this outdated library.

      Here is list of modules still using this library:

      • [INFO] Building openecomp-sdc-versioning-core 1.7.2-SNAPSHOT [38/160]
      • [INFO] Building openecomp-sdc-enrichment-api 1.7.2-SNAPSHOT [50/160]
      • [INFO] Building openecomp-tosca-converter-core 1.7.2-SNAPSHOT [68/160]
      • [INFO] Building catalog-model 1.7.2-SNAPSHOT [151/160]

            bmullers bmullers
            vasraz vasraz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: