Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8022287

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 8
    • 8
    • 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.

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

              Created:
              Updated:
              Resolved: