jpackage: Fix member function called from the CfgFile.Referencies compact canonical constructor

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 27
    • Affects Version/s: 27
    • Component/s: tools
    • master
    • generic
    • generic

      CfgFile.Referencies#appDirectory() instance method is called from the compact canonical constructor of the CfgFile.Referencies record at [1].

      It doesn't cause any trouble at the moment because the method doesn't access the instance, but it may be an issue once JEP 401 is integrated.

      Rework CfgFile.Referencies to avoid calling instance methods from the compact canonical constructor.

      [1] https://github.com/openjdk/jdk/blob/986d3772248098c0ba845861611a5a4ceb7b645a/src/jdk.jpackage/share/classes/jdk/jpackage/internal/CfgFile.java#L130

            Assignee:
            Alexey Semenyuk
            Reporter:
            Alexey Semenyuk
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: