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

False warnings "Duplicate name in Manifest: ..."

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.4.2
    • core-libs
    • None
    • generic
    • generic

      In Mantis (promoted b05) java.util.jar.Attributes has new code which is intended to check for
      duplicate names in Manifest and print warnings to stderr. The check is faulty in case
      of continuation lines. The following diff would fix the problem. (BTW the warning is not
      helpful without knowing the name of the jar file. Please consider adding it to the warning
      text.)

      --- Attributes.java~ 2002-10-31 23:05:00.000000000 +0100
      +++ Attributes.java 2002-11-02 19:15:12.000000000 +0100
      @@ -364,7 +364,7 @@
                   }
       
        try {
      - if (putValue(name, value) != null)
      + if (putValue(name, value) != null && lbuf[0] != ' ')
                           Logger.getLogger("java.util.jar").warning(
                                            "Duplicate name in Manifest: " + name);
        } catch (IllegalArgumentException e) {


      Wed Nov 06 04:28:33 MST 2002 dt101522

            Unassigned Unassigned
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: