classpathx-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Classpathx-discuss] bug in MimeTypeParameterList


From: Archit Shah
Subject: Re: [Classpathx-discuss] bug in MimeTypeParameterList
Date: Thu, 11 May 2006 11:17:15 -0400
User-agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929)

This bug fix has been applied to the trunk. JOnAS needs an activation
implementation corresponding to the JAF1.0.x/J2EE1.4 version of the
spec. Would it be possible to apply the same patch to the 1.0.x branch
and tag a release there? Objectweb would use this activation release for
future 4.7.x and 4.8.x releases of JOnAS. AFAICT, there have been no
other bug fixes on the trunk since the introduction of the JAF1.1 code.

 -- Archit

Archit Shah wrote:
The following patch fixes the bug by forcing a non-empty MimeTypeParameterList to start with ';' as indicated by the grammar in RFC2045.

diff -u -r1.6 MimeTypeParameterList.java
--- source/javax/activation/MimeTypeParameterList.java  25 Aug 2005
+++ source/javax/activation/MimeTypeParameterList.java  24 Apr 2006
@@ -231,11 +231,8 @@
         String name = (String)i.next();
         String value = (String)parameterValues.get(name.toLowerCase());

-        if (buffer.length() > 0)
-          {
-            buffer.append(';');
-            buffer.append(' ');
-          }
+        buffer.append(';');
+        buffer.append(' ');
         buffer.append(name);
         buffer.append('=');
         buffer.append(quote(value));




reply via email to

[Prev in Thread] Current Thread [Next in Thread]