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
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
- duplicates
-
JDK-4768263 ExceptionInInitailizerError triggered when LogManager loaded in S1AS
- Closed