[
https://issues.apache.org/jira/browse/WICKET-6334?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15900175#comment-15900175
]
Martin Grigorov commented on WICKET-6334:
-----------------------------------------
bq. WicketObjects#sizeof() is broken, because it detaches the object after
creating the clone with serialization.
The reason is WICKET-5013 & WICKET-5014.
bq. IMHO it would be better if WicketObjects#cloneObject() did no checking at
all: WicketObjects#sizeof() could create a clone, detach it and then calculate
the real size, checking all objects with SerializingObjectSizeOfStrategy.
How do you see this implemented ? Using a custom JavaSerializer without
installed checkers is the only way I see but then apps which use custom
ISerializer, e.g. KryoSerializer or FastSerializer, won't work.
> WicketObjects#sizeof() should detach Sessions
> ---------------------------------------------
>
> Key: WICKET-6334
> URL: https://issues.apache.org/jira/browse/WICKET-6334
> Project: Wicket
> Issue Type: Improvement
> Components: wicket
> Affects Versions: 7.6.0
> Reporter: Martin Grigorov
> Assignee: Martin Grigorov
> Priority: Minor
>
> Report at users@ : http://markmail.org/message/mq5zs2veaj4q4psg
> Wicket should detach the Session before calculating its size as it does for
> Component and IDetachable.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)