[ https://issues.apache.org/jira/browse/WICKET-6679?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16869699#comment-16869699 ]
Francois commented on WICKET-6679: ---------------------------------- yes the second works fine François > Fast2WicketSerializer StackOverflowError > ---------------------------------------- > > Key: WICKET-6679 > URL: https://issues.apache.org/jira/browse/WICKET-6679 > Project: Wicket > Issue Type: Bug > Components: wicket-core, wicket-extensions > Affects Versions: 8.5.0, 9.0.0-M2 > Reporter: Francois > Priority: Minor > Attachments: quickstart_serialization.zip > > > Wicket version 9.0.0.M2 and 8.xx with Fast2WicketSerializer > When Session.get() is called in a non serialized object > and session.getMetaData(MetaDataKey) is in a serialized object > there is a StackOverflowError > Will produce a StackOverflowError: > {code:java} > @Override > protected void onInitialize() { > super.onInitialize(); > Session session = Session.get(); > add(new AjaxLink<Void>("link") { > @Override > public void onClick(AjaxRequestTarget target) { > Boolean showgrid = session.getMetaData(KeyGrid); > // .... > } > }); > }{code} > > Will not produce: > {code:java} > @Override > protected void onInitialize() { > super.onInitialize(); > add(new AjaxLink<Void>("link") { > @Override > public void onClick(AjaxRequestTarget target) { > Boolean showgrid = Session.get().getMetaData(KeyGrid); > // .... > } > }); > }{code} > -- This message was sent by Atlassian JIRA (v7.6.3#76005)