Francois created WICKET-6679:
--------------------------------

             Summary: 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: 9.0.0-M2, 8.5.0
            Reporter: Francois
         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
@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);

// ....
 }
 });
}
 
Will not produce
@Override
protected void onInitialize() {
 super.onInitialize();

add(new AjaxLink<Void>("link") {

@Override
 public void onClick(AjaxRequestTarget target) {
 
 Boolean showgrid = Session.get().getMetaData(KeyGrid);

// ....
 }
 });
}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to