Deprecated features

There are deprecation rules under the Java Code Review, JSP Code Review, and XML File Review categories. The rules are organized by target release:

  • Deprecated before V8.0 and removed in V8.0
  • Deprecated before V8.0
  • Deprecated in V8.0
  • Deprecated in V8.5
  • Deprecated in V8.5 and removed in V9.0
  • Deprecated in V9.0

Table 1. Java deprecated features - Deprecated before V8.0 and removed in V8.0
Rule Name Rule Description Automated Fix
Avoid using the deprecated Apache SOAP API

This rule flags references to the org.apache.soap and com.ibm.soap packages.

No
Avoid using the deprecated OracleDataStoreHelper class

This rule flags the use of the deprecated Oracle data store helper and field.

The quick fix changes the code to use the Oracle 11g helper after confirming that the server runtime configuration was changed.

No

Table 2. Java deprecated features - Deprecated before V8.0
Rule Name Rule Description Automated Fix
Avoid using the deprecated analyzer logging system classes

This rule flags the use of the deprecated com.ibm.websphere.als classes.

No
Avoid using the deprecated Ant setCompileWithAssert method

This rule flags the use of the deprecated Ant method setCompileWithAssert.

The quick fix replaces the method with setJdkSourceLevel.

No
Avoid using the deprecated AppDeploymentController methods

This rule flags the use of the application deployment controller getTaskInfo methods.

No
Avoid using the deprecated AppDeploymentTask methods

This rule flags the use of the deprecated methods from the com.ibm.websphere.management.application. client.AppDeploymentTask class.

The quick fix changes the methods to the recommended replacements.

No
Avoid using the deprecated application management installStandaloneRAR method

This rule flags the use of the application management installStandaloneRAR method.

No
Avoid using the deprecated application management moveModule method

This rule flags the use of the application management moveModule method.

No
Avoid using the deprecated application profile access intent methods

This rule flags the use of deprecated application profile access intent methods.

No
Avoid using the deprecated Cache interface

This rule flags the use of the com.ibm.websphere.Cache interface.

No
Avoid using the deprecated com.ibm.etools.logging utilities

This rule detects and flags references to com.ibm.etools.logging packages that are deprecated.

No
Avoid using the deprecated command manager methods

This rule flags the use of the deprecated methods in com.ibm.websphere.management.cmdframework. CommandMgrInitializer class.

The quick fix changes the methods to the recommended replacements.

No
Avoid using the deprecated ConnectionFactory MBean methods

This rule flags the deprecated ConnectionFactory MBean operations getPoolContents, getAllPoolContents, and showAllocationHandleList.

No
Avoid using the deprecated ConnectionSpecImpl methods

This rule flags the deprecated methods from the com.ibm.websphere.ola.ConnectionSpecImpl class.

The quick fix changes the parameter to the appropriate boolean value.

No
Avoid using the deprecated Connector Architecture interfaces

This rule flags the deprecated Connector Architecture interfaces com.ibm.websphere.j2c. ConnectionEventListener and com.ibm.websphere.j2c.ConnectionManager.

No
Avoid using the deprecated distributed locking map field

This rule flags the deprecated com.ibm.websphere.cache.DistributedObjectCache.TYPE_DISTRIBUTED_LOCKING_MAP field and the removed com.ibm.websphere.cache.DistributedLockingMap interface.

No
Avoid using the deprecated DumpNameSpace constructor and fields

This rule flags the use of the deprecated constructor and fields from the com.ibm.websphere.naming.DumpNameSpace class.

No
Avoid using the deprecated DynamicCacheAccessor methods

This rule flags the use of the deprecated methods from the com.ibm.websphere.cache.DynamicCacheAccessor class.

No
Avoid using the deprecated dynamic cache methods and fields

This rule flags the use of the deprecated methods and fields from the com.ibm.websphere.cache.CacheEntry and the com.ibm.websphere.cache.EntryInfo interfaces.

No
Avoid using the deprecated EJB persistence createInteraction method

This rule flags the use of the com.ibm.websphere.ejbpersistence.EJBToRAAdapter.createInteraction (javax.resource.cci.Connection conn) method.

No
Avoid using the deprecated ExtendedJTATransaction method registerSynchronizationCallbackFor CurrentTran

This rule detects and flags the method registerSynchronizationCallbackFor CurrentTran from the class ExtendedJTATransaction.

No
Avoid using the deprecated HttpServlet request/response proxy classes

This rule flags the use of the HttpServletRequestProxy and HttpServletResponseProxy classes.

No
Avoid using the deprecated interface SIBTransmitMessageRequest

This rule flags the use of the com.ibm.websphere.sib.admin.SIBTransmitMessageRequest interface.

The quick fix replaces the interface with the com.ibm.websphere.sib.admin.SIBMessageRequest interface.

No
Avoid using the deprecated JRas extension APIs

This rule flags deprecated Java reliability, availability, and serviceability APIs.

No
Avoid using the deprecated LocalHomeAccessor class

This rule flags the use of the com.ibm.websphere.ejbcontainer.LocalHomeAccessor class.

No
Avoid using the deprecated management InvalidDocumentURIException class

This rule flags the use of the com.ibm.websphere.management.exception.InvalidDocumentURIException class.

The quick fix changes the code to use DocumentNotFoundException.

No
Avoid using the deprecated management NestedAdminException class

This rule flags the use of the com.ibm.websphere.management.exception.NestedAdminException class.

No
Avoid using the deprecated management NotificationConstants TYPE_AGENT_DISCOVERED field

This rule flags the use of the NotificationConstants.TYPE_AGENT_DISCOVERED field.

The quick fix replaces references to this field with the NotificationConstants.TYPE_DISCOVERY_AGENT_FOUND field.

No
Avoid using the deprecated management removeNotificationListenerExtended method

This rule flags the use of the deprecated removeNotificationListenerExtended methods from the com.ibm.websphere.management.AdminService and com.ibm.websphere.management.AdminClient classes.

No
Avoid using the deprecated management statistics interfaces

This rule flags the use of the com.ibm.websphere.management.statistics package.

The quick fix changes all references of com.ibm.websphere.management.statistics to javax.management.j2ee.statistics and all reference of MessageBeanStats to MessageDrivenBeanStats.

No
Avoid using the deprecated methods from WebSphere SIB MQ classes

This rule flags the use of the getNpmSpeed() and getStatus() methods from SIB MQ classes.

The quick fix changes the methods to the recommended replacements.

No
Avoid using the deprecated naming properties INITIAL_CONTEXT_ FACTORY_LEGACY field

This rule flags the use of the com.ibm.websphere.naming.PROPS.INITIAL_CONTEXT_FACTORY_LEGACY field.

The quick fix changes all references to this field to com.ibm.websphere.naming.PROPS.INITIAL_CONTEXT_FACTORY.

No
Avoid using the deprecated PMI Client API

This rule flags the use of PMI Client API classes.

No
Avoid using the deprecated PmiConstants fields

This rule flags the use of deprecated PmiConstants fields.

No
Avoid using the deprecated PmiDataInfo getParticipation method

This rule flags the use of the com.ibm.websphere.pmi.PmiDataInfo.getParticipation() method.

No
Avoid using the deprecated PMI dynamic cache OBJECT_CACHE_GROUP field

This rule flags the use of the deprecated com.ibm.websphere.pmi.stat.WSDynamicCacheStats.OBJECT_CACHE_GROUP field.

The quick fix changes OBJECT_CACHE_GROUP to OBJECT_GROUP.

No
Avoid using the deprecated PMI dynamic cache SERVLET_CACHE_GROUP field

This rule flags the use of the deprecated com.ibm.websphere.pmi.stat.WSDynamicCacheStats.SERVLET_CACHE_GROUP field.

No
Avoid using the deprecated PmiJmxTest methods

This rule flags the use of the deprecated methods from the com.ibm.websphere.pmi.PmiJmxTest class.

No
Avoid using the deprecated PMI MBeanLevelSpec methods

This rule flags the use of the deprecated constructors and methods from the com.ibm.websphere.pmi.stat.MBeanLevelSpec class.

No
Avoid using the deprecated PmiModuleConfig print method

This rule flags the use of the deprecated com.ibm.websphere.pmi.PmiModuleConfig.print(PrintWriter) method.

No
Avoid using the deprecated PMI StatDescriptor methods

This rule flags the use of the deprecated constructor and methods from the com.ibm.websphere.pmi.stat.StatDescriptor class.

No
Avoid using the deprecated PMI statistic classes

This rule flags the use of the deprecated classes from the com.ibm.websphere.pmi.stat package.

No
Avoid using the deprecated PMI WSStats methods

This rule flags the use of the deprecated methods from the com.ibm.websphere.pmi.stat.WSStats interface.

No
Avoid using the deprecated RemoteCommandMgr MBean

This rule flags the deprecated RemoteCommandMgr MBean.

No
Avoid using the deprecated resource adapter classes and interfaces

This rule flags the use of the deprecated resource adapter classes and interfaces.

No
Avoid using the deprecated resource adapter fields

This rule flags the use of the deprecated resource adapter fields.

No
Avoid using the deprecated resource adapter methods

This rule flags the use of the deprecated resource adapter methods.

No
Avoid using the deprecated runtime ServerName methods

This rule flags the use of methods deprecated from the com.ibm.websphere.runtime.ServerName class.

No
Avoid using the deprecated scheduler MessageTaskInfo methods

This rule flags the use of the deprecated methods from the com.ibm.websphere.scheduler.MessageTaskInfo class.

No
Avoid using the deprecated Scheduler methods

This rule flags the use of the deprecated createBeanTaskInfo() and createMessageTaskInfo() methods from the com.ibm.websphere.scheduler.Scheduler class.

No
Avoid using the deprecated security authentication exception classes

This rule flags the use of the deprecated exception classes com.ibm.websphere.security.auth. MapCredentialFailedException and com.ibm.websphere.security.auth. MapCredentialNotSupportedException.

No
Avoid using the deprecated security authentication WSPrincipal getCredential method

This rule flags the use of the deprecated getCredential() method from the com.ibm.websphere.security.auth.WSPrincipal class.

No
Avoid using the deprecated security printStackTrace() methods

This rule flags the use of the deprecated printStackTrace() methods from the com.ibm.websphere.security. WSSecurityException and com.ibm.websphere.security.auth. WSLoginFailedException classes.

No
Avoid using the deprecated security LoginHelper class

This rule flags the use of the deprecated com.ibm.ws.security.util.LoginHelper class.

No
Avoid using the deprecated servlet cache classes

This rule flags the use of the deprecated servlet cache classes.

No
Avoid using the deprecated servlet cache IdGenerator methods

This rule flags the use of the deprecated methods initialize() and getSharingPolicy() from the com.ibm.websphere.servlet.cache.IdGenerator class.

No
Avoid using the deprecated servlet cache MetaDataGenerator initialize method

This rule flags the use of the deprecated initialize() method from the com.ibm.websphere.servlet.cache. MetaDataGenerator class.

No
Avoid using the deprecated SIMediationBeanMessageContext interface

This rule flags the use of the deprecated com.ibm.websphere.sib.mediation.messagecontext.SIMediationBeanMessageContext interface.

No
Avoid using the deprecated SIMessageContextException class

This rule flags the use of the deprecated com.ibm.websphere.sib.mediation.handler.SIMessageContextException class.

The quick fix changes the code to use MessageContextException instead.

No
Avoid using the deprecated TransactionControl interface

This rule flags the use of the deprecated com.ibm.ws.extensionhelper.TransactionControl interface.

No
Avoid using the deprecated UDDI Version 2 interfaces

This rule flags the use of UDDI Version 2 related packages.

No
Avoid using the deprecated UNTGenerateCallback methods

This rule flags the use of the deprecated methods from the com.ibm.websphere.wssecurity.callbackhandler.UNTGenerateCallback class.

The quick fix changes the methods to the recommended replacements.

No
Avoid using the deprecated WASProduct class

This rule flags the deprecated com.ibm.websphere.product.WASProduct class was used to get product installation information and history.

No
Avoid using the deprecated web container custom extension classes

This rule flags the deprecated web container custom extension classes from the com.ibm.servlet package.

No
Avoid using the deprecated WebContainer MBean operations

This rule flags references to the deprecated WebContainer MBean operations startTransports, stopTransports, and restartWebApplication.

No
Avoid using the deprecated WebSphere Ant class ModuleValidator

This rule flags the use of the deprecated WebSphere Ant class com.ibm.websphere.ant.tasks. ModuleValidator.

No
Avoid using the deprecated WebSphere Studio tools runtime classes

This rule flags the use of the deprecated WebSphere Studio tools runtime classes from the com.ibm.webtools.runtime package.

No
Avoid using the deprecated WSAddressing for JAXWS 2.0 classes

This rule flags the deprecated WSAddressing for JAXWS 2.0 classes from the com.ibm.websphere.wsaddressing.jaxws package.

No
Avoid using the deprecated WsnBatchResult fields

This rule flags use of deprecated fields from the com.ibm.websphere.naming.WsnBatchResult class.

The quick fix changes the fields to the recommended replacements.

No

Table 3. Java deprecated features - Migration to V8.0
Rule Name Rule Description Automated Fix
Avoid extending the AppDeploymentTask class

This rule flags any class that extends com.ibm.websphere.management.application. client.AppDeploymentTask.

No
Avoid using the deprecated AppConstants fields

This rule flags the use of the deprecated fields from the com.ibm.websphere.management.application. AppConstants class.

No
Avoid using the deprecated AppManagementBaseFactory methods

This rule flags the use of the deprecated methods from the com.ibm.websphere.management.application. AppManagementBaseFactory class.

No
Avoid using the deprecated com.ibm.websphere.product classes

This rule flags the deprecated classes from the com.ibm.websphere.product packages.

No
Avoid using the deprecated elements in the EditionInfo class

This rule flags the use of the deprecated elements from the com.ibm.websphere.management.application. EditionInfo class.

No
Avoid using the deprecated elements in the IFilterConfig interface

This rule flags the use of the deprecated elements from the com.ibm.websphere.servlet.filter. IFilterConfig interface.

No
Avoid using the deprecated field in the AppDeploymentController class

This rule flags the use of the deprecated field taskHelperSuffix from the class com.ibm.websphere.management.application. client.AppDeploymentController.

No
Avoid using the deprecated IRequest isStartAsync() method

This rule flags the use of the deprecated method isStartAsync() from the interface com.ibm.websphere.servlet.request.IRequest.

No
Avoid using the deprecated WASDirectory methods and fields

This rule flags the deprecated com.ibm.websphere.product.WASDirectory methods and related fields.

No
Avoid using the deprecated WebSphere Studio Application Developer Integration Edition libraries

This rule flags the use of the deprecated WebSphere Studio Application Developer Integration Edition libraries.

No
The WebSphere Startup Beans Service API was superseded by a newer implementation

The WebSphere startup bean service was superseded by the startup beans in Enterprise JavaBeans (EJB) 3.1. The service is deprecated in WebSphere Application Server traditional V8.0 and is not available on Liberty.

No

Table 4. Java deprecated features - Deprecated in V8.5 and removed in V9.0
Rule Name Rule Description Automated Fix
Avoid using the deprecated Common Event Infrastructure packages

This rule flags APIS from the deprecated com.ibm.events packages.

No
Avoid using the deprecated CEA system application commsvc.ear

This rule flags use of the Communications Enabled Applications (CEA) REST interface provided by the deprecated CEA system application commsvc.ear.

No
Table 5. Java deprecated features - Deprecated in V8.5
Rule Name Rule Description Automated Fix
Avoid using the deprecated WSSecurityHelper revokeSSOCookies and getLTPACookieFromSSOToken methods

This rule flags the deprecated com.ibm.websphere.security.WSSecurityHelpergetLTPACookieFromSSOToken and com.ibm.websphere.security.WSSecurityHelperrevokeSSOCookies methods.

No

Table 6. Java deprecated features - Deprecated in V9.0
Rule Name Rule Description Automated Fix
The CommonJ Timer and Work Manager APIs are deprecated

This rule flags references to the CommonJ Timer and Work Manager APIs. They are deprecated in WebSphere Application Server traditional V9.0.

No
The optional Java EE 7 technology Java API for XML-based RPC (JAX-RPC) 1.1 is deprecated

The Java EE 7 technology for XML-based RPC (JAX-RPC) 1.1 is deprecated in WebSphere Application Server traditional V9.0.

No
The optional Java EE 7 technology Java API for XML Registries (JAXR) 1.0 is deprecated

The Java EE 7 technology for XML Registries (JAXR) 1.0 is deprecated in WebSphere Application Server traditional V9.0.

No
The optional Java EE 7 technology Java EE Application Deployment 1.2 is deprecated

The Java EE 7 technology Java EE Application Deployment 1.2 is deprecated in WebSphere Application Server traditional V9.0.

No
The WebSphere Asynchronous Beans API is deprecated

This rule flags use of the com.ibm.websphere.asyncbeans API. It is deprecated in WebSphere Application Server traditional V9.0.

No

Table 7. JSP file deprecated features - Deprecated before V8.0
Rule Name Rule Description Automated Fix
Avoid using the deprecated JSP <tsx> tags

This rule flags the use of the deprecated <tsx> tags in JSP files.

No

Table 8. XML file deprecated features - Deprecated before V8.0
Rule Name Rule Description Automated Fix
Avoid using the deprecated method-level access intent for entity beans

This rule flags the use of method-level access intent on entity beans.

No
Avoid using the deprecated reload attributes of the IBM deployment descriptor extensions

This rule flags the deprecated reloadInterval and reloadingEnabled attributes of the IBM deployment descriptor extensions, including both the WAR file extension (WEB-INF/ibm-web-ext.xmi) and the application extension (META-INF/ibm-application-ext.xmi).

No

Table 9. XML file deprecated features - Deprecated in V9.0
Rule Name Rule Description Automated Fix
The optional Java EE 7 technology Enterprise JavaBeans (EJB) entity beans is deprecated

This rule flags entity elements in ejb-jar.xml files. The Enterprise JavaBeans (EJB) entity beans technology is deprecated in WebSphere Application Server traditional V9.0.

No
The optional Java EE 7 technology Java API for XML-based RPC (JAX-RPC) 1.1 is deprecated

The Java EE 7 technology for XML-based RPC (JAX-RPC) 1.1 is deprecated in WebSphere Application Server traditional V9.0.

No