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
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
- links to
-
Commit(master)
openjdk/jdk/40bf0870
-
Review(master)
openjdk/jdk/29615