harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthias Weßendorf (JIRA) <j...@apache.org>
Subject [jira] Commented: (HARMONY-6614) ObjectInputStream's primitive mapping table misses void/void.class
Date Wed, 11 Aug 2010 09:35:16 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-6614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12897195#action_12897195
] 

Matthias Weßendorf commented on HARMONY-6614:
---------------------------------------------

a little background.

I am working on an Apache MyFaces project, were we have our own ObjectInputStream class ([1]).
Now when we update to the latest version of one of our dependencies (JSF 2.0, Sun Mojarra),
we
got this exception: 
java.lang.ClassNotFoundException: void
...

I filed a bug against them, b/c of that (see [2] for more). They said the reason why we see
it is that with the new version one of their helper class stores null values as
Void.TYPE(s). Therefore they suggested to do what the JDK does.

The did a very simple patch ([3]), which I think is code from the Sun JDK 1.6.x of the "standard"
ObjectInputStream.
In order to avoid any license issues, by looking into Sun's JDK, I opened Harmony can "borrowed"
code.

So I am wondering if the void has been forgotten..., since I suspect (as of [3]) that the
Sun JDK's ObjectInputStream does
register void/void.class....

BTW. I changed our custom ObjectInputStream patch (see [4]) and the error (java.lang.ClassNotFoundException:
void) is now gone

[1] https://issues.apache.org/jira/secure/attachment/12439193/1.2.12.2_compressviewstate.patch
[2] https://javaserverfaces.dev.java.net/issues/show_bug.cgi?id=1607
[3] https://javaserverfaces.dev.java.net/nonav/issues/showattachment.cgi/1241/1607.txt
[4] https://issues.apache.org/jira/secure/attachment/12451648/TRINIDAD-1747_August10.patch

> ObjectInputStream's primitive mapping table misses void/void.class
> ------------------------------------------------------------------
>
>                 Key: HARMONY-6614
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6614
>             Project: Harmony
>          Issue Type: Bug
>          Components: JDK
>            Reporter: Matthias Weßendorf
>
> looking at ObjectInputStream.java,
> static { PRIMITIVE_CLASSES.put("byte", byte.class); //$NON-NLS-1$ PRIMITIVE_CLASSES.put("short",
short.class); //$NON-NLS-1$ PRIMITIVE_CLASSES.put("int", int.class); //$NON-NLS-1$ PRIMITIVE_CLASSES.put("long",
long.class); //$NON-NLS-1$ PRIMITIVE_CLASSES.put("boolean", boolean.class); //$NON-NLS-1$
PRIMITIVE_CLASSES.put("char", char.class); //$NON-NLS-1$ PRIMITIVE_CLASSES.put("float", float.class);
//$NON-NLS-1$ PRIMITIVE_CLASSES.put("double", double.class); //$NON-NLS-1$ }
> I am wondering why there is no "void", void.class key-value pair? 
> http://markmail.org/message/ahzzkhz63x5otksq

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message