This rule detects the use of WebLogic weblogic.transaction.RollbackException objects in a Java file. You can change the exception to javax.transaction.RollbackException .
WebLogic ServletAuthentication is a proprietary API and cannot be used in WebSphere traditional or Liberty. Use
the HttpServletRequest.login() and HttpServletRequest.logout()
methods from the Java platform to handle authentication.
See the Java documentation for the HttpServletRequest interface.
The following cases are detected:
New Objects and Class Instance Creation example:
RollbackException e = new RollbackException()
Field declaration, object level example:
private RollbackException e ;
Method variable example:
private void doX(){
RollbackException e;
}
Cast expression example:
RollbackException e = (RollbackException) someOtherException;
Method throws statement example:
private void doX() throws MyException, RollbackException {
// method data here
}
The object is detected if it is used as a qualified name, such as weblogic.transaction.RollbackException .
The object is also detected if it is used as a simple name, such as
RollbackException
,
if either of the following two import statements exist:
import weblogic.transaction.*;
or
import weblogic.transaction.RollbackException;