javac.sym.Profiles uses a static Map when it should not

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • 8
    • Affects Version/s: 8
    • Component/s: tools
    • None
    • b106
    • Verified


      In langtools/src/share/classes/com/sun/tools/javac/sym/Profiles.java, line 51:

              final Map<String, Package> packages = new TreeMap<String, Package>();

      This map is declared static, and should not be. This causes problems when using the Profiles API twice in the same JVM.

            Assignee:
            Jonathan Gibbons
            Reporter:
            Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: