From 73adcd54fcc79b72250a290122e07e2c0c755ceb Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Mon, 24 Sep 2012 20:09:06 +0300 Subject: Use init(PortletConfig) to avoid running init before super (#9728) --- server/src/com/vaadin/server/LegacyVaadinPortlet.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/server/src/com/vaadin/server/LegacyVaadinPortlet.java b/server/src/com/vaadin/server/LegacyVaadinPortlet.java index 1402a88c7d..a91a82076e 100644 --- a/server/src/com/vaadin/server/LegacyVaadinPortlet.java +++ b/server/src/com/vaadin/server/LegacyVaadinPortlet.java @@ -16,6 +16,7 @@ package com.vaadin.server; +import javax.portlet.PortletConfig; import javax.portlet.PortletException; import javax.portlet.PortletRequest; @@ -44,8 +45,8 @@ public class LegacyVaadinPortlet extends VaadinPortlet { }; @Override - public void init() throws PortletException { - super.init(); + public void init(PortletConfig portletConfig) throws PortletException { + super.init(portletConfig); getService().addVaadinSessionInitializationListener( new VaadinSessionInitializationListener() { @@ -56,8 +57,7 @@ public class LegacyVaadinPortlet extends VaadinPortlet { try { onVaadinSessionStarted(VaadinPortletRequest .cast(event.getRequest()), - (VaadinPortletSession) event - .getSession()); + (VaadinPortletSession) event.getSession()); } catch (PortletException e) { throw new ServiceException(e); } @@ -68,8 +68,7 @@ public class LegacyVaadinPortlet extends VaadinPortlet { protected Class getApplicationClass() throws ClassNotFoundException { try { - return ServletPortletHelper - .getLegacyApplicationClass(getService()); + return ServletPortletHelper.getLegacyApplicationClass(getService()); } catch (ServiceException e) { throw new RuntimeException(e); } -- cgit v1.2.3