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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2
    • 8
    • 8
    • tools
    • None
    • b106
    • Verified

    Description


      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: