portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Donald (JIRA)" <jetspeed-...@portals.apache.org>
Subject [jira] Created: (JS2-271) LayoutPortlet contains incompatible class cast
Date Sat, 28 May 2005 21:11:52 GMT
LayoutPortlet contains incompatible class cast

         Key: JS2-271
         URL: http://issues.apache.org/jira/browse/JS2-271
     Project: Jetspeed 2
        Type: Bug
  Components: Layout  
    Versions: 2.0-M3    
    Reporter: John Donald

In line 280 the cast to RequestContext is not necessary, it leads to a class cast exception.
        JetspeedPowerTool tool = (JetspeedPowerTool) (RequestContext) request.getAttribute(PortalReservedParameters.JETSPEED_POWER_TOOL_REQ_ATTRIBUTE);
This does not happen in the default implementation as the request attribute is always null
and created each time this code is executed. If the method were called more than once it would

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org

View raw message