We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
putFields
orb/orbmain/src/main/java/com/sun/corba/ee/impl/io/OutputStreamHook.java
Lines 145 to 150 in 08d26c2
Thus - if class defines few fields AND in its writeObject methods registers each one with separate outStream.putFields().put(...) - like ConcurrentHashMap (JDK8) does: https://github.com/openjdk/jdk/blob/9a9add8825a040565051a09010b29b099c2e7d49/jdk/src/share/classes/java/util/concurrent/ConcurrentHashMap.java#L1403-L1405 then only one field is serialized with value, and the remaining are serialized as nulls in (example for int):
writeObject
outStream.putFields().put(...)
ConcurrentHashMap
nulls
int
orb/orbmain/src/main/java/com/sun/corba/ee/impl/io/IIOPOutputStream.java
Lines 668 to 674 in 08d26c2
But due to putFields being overwritten - fields at
fields
Line 120 in 08d26c2
The text was updated successfully, but these errors were encountered:
JDK-8075802
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
orb/orbmain/src/main/java/com/sun/corba/ee/impl/io/OutputStreamHook.java
Lines 145 to 150 in 08d26c2
Thus - if class defines few fields AND in its
writeObject
methods registers each one with separateoutStream.putFields().put(...)
- likeConcurrentHashMap
(JDK8) does:https://github.com/openjdk/jdk/blob/9a9add8825a040565051a09010b29b099c2e7d49/jdk/src/share/classes/java/util/concurrent/ConcurrentHashMap.java#L1403-L1405
then only one field is serialized with value, and the remaining are serialized as
nulls
in (example forint
):orb/orbmain/src/main/java/com/sun/corba/ee/impl/io/IIOPOutputStream.java
Lines 668 to 674 in 08d26c2
But due to
putFields
being overwritten -fields
atorb/orbmain/src/main/java/com/sun/corba/ee/impl/io/OutputStreamHook.java
Line 120 in 08d26c2
is new, one-element only map, for every new field put to the stream.
The text was updated successfully, but these errors were encountered: