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

MimeTable is unsafe

XMLWordPrintable

    • b116
    • generic
    • generic
    • Not verified

      sun.net.www.MimeTable uses unsafe lazy initialization of the default instance.

         private static MimeTable defaultInstance = null;

          [...]

          public static MimeTable getDefaultTable() {
              if (defaultInstance == null) {
                  [...]
                          defaultInstance = new MimeTable();
                  [...]
              }

              return defaultInstance;
          }

            chegar Chris Hegarty
            chegar Chris Hegarty
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: