opensubscriber
   Find in this group all groups
 
Unknown more information…

c : classpathx-discuss@gnu.org 12 May 2006 • 10:47PM -0400

Re: [Classpathx-discuss] Bug in JAF 1.1 (ObjectDataContentHandler)
by Archit Shah

REPLY TO AUTHOR
 
REPLY TO GROUP




I'm not sure if the current release contains this fix, but this bug was
fixed in CVS a while back. Maybe we can get this fix into 1.0.x branch
as well?

$ cvs diff -r 1.5 -r 1.6
source/javax/activation/ObjectDataContentHandler.java
[...]
--- source/javax/activation/ObjectDataContentHandler.java       28 May
2005 16:54:58 -0000      1.5
+++ source/javax/activation/ObjectDataContentHandler.java       29 Jun
2005 20:31:31 -0000      1.6
@@ -107,7 +107,10 @@
        {
          dch.writeTo(object, mimeType, out);
        }
-    throw new UnsupportedDataTypeException("no object DCH for MIME type
" + mimeType);
+    else
+      {
+        throw new UnsupportedDataTypeException("no object DCH for MIME
type " + mimeType);
+      }
    }

  -- Archit

Markus Wiederkehr wrote:
> Tracking down the problem I found this code in
> javax.activation.ObjectDataContentHandler:
>
>>  public void writeTo(Object object, String mimeType, OutputStream out)
>>    throws IOException
>>  {
>>    if (dch != null)
>>      {
>>        dch.writeTo(object, mimeType, out);
>>      }
>>    throw new UnsupportedDataTypeException("no object DCH for MIME type
>> " + mimeType);
>>  }


_______________________________________________
Classpathx-discuss mailing list
Classpathx-discuss@gnu....
http://lists.gnu.org/mailman/listinfo/classpathx-discuss

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.