[ 
https://issues.apache.org/jira/browse/WICKET-945?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Igor Vaynberg resolved WICKET-945.
----------------------------------

    Resolution: Invalid

must have already been fixed.

looking at startPanel() code:

return (Panel)startPage(new ITestPageSource()
                {
                        private static final long serialVersionUID = 1L;

                        public Page getTestPage()
                        {
                                return new DummyPanelPage(testPanelSource);
                        }
                }).get(DummyPanelPage.TEST_PANEL_ID);

the page returned is not anonymous so it wont carry a reference to anything.

> WicketTester requiring itself to be serializable
> ------------------------------------------------
>
>                 Key: WICKET-945
>                 URL: https://issues.apache.org/jira/browse/WICKET-945
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.0-beta3
>            Reporter: Kent Tong
>             Fix For: 1.5-M2
>
>
> Similar to https://issues.apache.org/jira/browse/WICKET-727, in 
> BaseWicketTester, it creates objects of anonymous classes as pages 
> (DummyPanelPage). By definition, they refer to the tester itself and will try 
> to drag it in when they're serialized.
> public final Panel startPanel(final Class panelClass)
>       {
>               return (Panel)startPage(new ITestPageSource()
>               {
>                       private static final long serialVersionUID = 1L;
>                       public Page getTestPage()
>                       {
>                               return new DummyPanelPage(new TestPanelSource()
>                               {
>                                       private static final long 
> serialVersionUID = 1L;

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to