axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Suresh Attanayake (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (RAMPART-331) Unreachable code in org.apache.rahas.STSMessageReceiver.invokeBusinessLogic() - "dispatcher" is never null at end of try
Date Sat, 21 Sep 2013 06:10:52 GMT

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

Suresh Attanayake updated RAMPART-331:
--------------------------------------

    Attachment: deadcode.png

True enough, Eclipse shows it too as a dead code. 
                
> Unreachable code in org.apache.rahas.STSMessageReceiver.invokeBusinessLogic() - "dispatcher"
is never null at end of try
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: RAMPART-331
>                 URL: https://issues.apache.org/jira/browse/RAMPART-331
>             Project: Rampart
>          Issue Type: Bug
>          Components: rampart-trust
>    Affects Versions: 1.5.1
>         Environment: Linux / Eclipse
>            Reporter: David Tonhofer
>            Priority: Minor
>         Attachments: deadcode.png
>
>
> At the end of "org.apache.rahas.STSMessageReceiver.invokeBusinessLogic()":
>             
>             if(dispatcher != null) {
>                 SOAPEnvelope responseEnv = dispatcher.handle(inMessage, outMessage);
>                 outMessage.setEnvelope(responseEnv);
>             } else {
>                 throw new TrustException("missingDispatcherConfiguration");
>             }
> This code is run at a point where dispatcher cannot be null; the else branch is dead
code.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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


Mime
View raw message