Submitted On 18-SEP-1998
malf
This doesn't work in jdk 1.1.6 either, it throws
an "java.io.NotSerializableException: int" exception
when writing a primitive class object. The problem
seems to be lack of support for primitive types in
java.io.ObjectStreamClass.java.
Submitted On 11-MAR-1999
kriff
The problem would be fixed if Class.forName
recognized "int" (and the other primitive types)
as a special case and returned the proper Class
object. The javadocs for Class.forName explicitly
state that this won't work because the classloader
will look for a class named "int" in the default
package. This makes no sense because its impossible
to declare a class named "int" ("int" is a keyword).
Submitted On 21-OCT-1999
dtropp
3 people from my team just spent 2 days trying to track down this bug in our
client/server
application (using RMI, ie. serialization).
This needs to be fixed!!!
The constraint (which I believe relates to security in some way) should be
changed.
Submitted On 22-NOV-1999
davey
I just spent over a day rediscovering this.
Submitted On 02-FEB-2000
jeff_nielsen
I also just wasted hours re-discovering this. I'm not quite sure how to use
the
workaround provided above in the context of RMI. How do I get
sun.rmi.server.UnicastRef.unmarshalValue() to use an instance of
MyObjectInputStream
rather than the default ObjectInputStream???
Submitted On 28-FEB-2000
burner
I have also wasted a day rediscovering this bug. Quite
annoying. How hard would it be to fix?
Submitted On 09-MAR-2000
oliverrode
The community is waiting 18 month now.
When will Sun fix this serious bug ?!
Submitted On 12-APR-2000
pangh
I wasted couple of hours to re-discover this bug. I think
it should be easy to fix and I cannot see any security
issue related to it.
Submitted On 28-APR-2000
Pipi
Please Sun, fix this Bug !!
Submitted On 17-MAY-2000
joco
Why is this bug still in 1.3????
Please sun just use the above workaround for the
ObjectInputStream or rewrite the Default ClassLoader so
that it also returns classes of primitives (best solution)
Submitted On 16-JUN-2000
babiak
Fri Jun 16 14:22:59 GMT+02:00 2000
Milan Babiak <Milan.Babiak@icl.sk>
I have found this bug in JDK 1.2.2, but in Oracle
JDeveloper Version 2.0 (Build 343) it works correctly.
Java version is:
C:\Testing>"C:\Program Files\Oracle\JDeveloper 2.0\java1.2
\jre\bin\java.exe" -version
java version "internal_build"
Ferrari (Copyright (c) 1998, 1999 Oracle Corp. Version
1.2.078 odv, nojit)
Submitted On 05-SEP-2000
adepue
We spent hours tracking this one down while working on our
RMI based remote management system. We went down rabbit
trails thinking it was the ClassLoader of the IDE our
management console resides in. We are going to figure out
a work around, of course, but it isn't obvious at first
what the workaround is for RMI. This is a simple thing
that is very annoying and difficult. Why not just let
Class.forName detect "int", "long", and all the others?
You can't make classes with those names anyway!
Submitted On 12-NOV-2000
pmurray
Dammit! Maybe this is what was the problem on my project! I
was writing a generic proxy, where you pass it a CORBA
handle, a java.lang.reflect.Method, and an argument list.
Could *not* get it to work, eventually just passed
everything as Strings. Thanks, BugParade, for pointing out
a solution. But I'd prefer the bug fix to be at your end.
Submitted On 06-DEC-2000
ssoltysik
2 Years seems like a long time for this bug to go un-fixed.
Submitted On 10-MAY-2001
mbecke
This bug says that it has been fixed, but it still doesn't work for me. I've tried this in the most recent versions of the JDK for Linux and Windows. What's the deal?
Submitted On 12-MAY-2001
bestsss
mbecke, merlin is not available though it is one of the most expected version
'cause of Non-block IO...
U have to hold ur horses
Submitted On 23-MAY-2001
fablumos
Still not fixed for me as well !
Submitted On 30-MAY-2001
larsona
ARRGH - Sun fix this damn bug! (And all the other cludges
for primitives in reflection)
Submitted On 10-NOV-2001
thomas.mahler
This is really an annoying bug I wasted 3 days on debugging
!!!
Why is this bug marked as closed and fixed when it is still
present in JDK 1.3 ?
Submitted On 03-DEC-2001
Gauravc
Why not change the java.io.ObjectStreamClass.class so that
when the class descriptor is read, the jdk knows that it is
a class object representing the primitive type and not call
resolveObject. Instead call
java.lang.Class.getPrimitiveClass.
Submitted On 11-APR-2002
meherzad77
So how does this workaround work if I have int[], int[][],
int[][][] - am I supposed to have one case for each of
these?
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|