Referenz für unterstützte Korrekturen

watsonx Code Assistant Standardplan

Wenn Sie Ihre Java modernisieren oder aktualisieren, hilft Ihnen watsonx Code Assistant, indem es Ihnen im Chat Vorschläge macht, wie Sie Ihren Code ändern können. Diese Referenz listet die Codeprobleme auf, die mit den unterstützten Korrekturen verbunden sind.

Weitere Informationen finden Sie unter:

Probleme bei der Modernisierung von WebSphere Application Server auf Liberty

  • The WebSphere ServletChain API was superseded by a newer implementation
  • The WebSphere Servlet API was superseded by a newer implementation (match criteria: com.ibm.websphere.servlet.response.ResponseUtils)
  • The WebSphere Startup Beans Service API was superseded by a newer implementation
  • The WebSphere Servlet API was superseded by a newer implementation (ServletInputStreamAdapter)
  • The WebSphere Servlet API was superseded by a newer implementation (ChainerServlet)
  • The WebSphere Servlet API was superseded by a newer implementation (ServletOutputStreamAdapter)
  • The WebSphere Servlet API was superseded by a newer implementation (ResponseErrorReport)
  • Some WebSphere Security APIs and SPIs are unavailable (security Exception)
  • Some WebSphere Security APIs and SPIs are unavailable (com.ibm.websphere.crypto)
  • Review use of the dynamic cache service

Probleme beim Upgrade der Version Java SE

  • Avoid using default charset when the output stream is a PrintStream
  • The defineAnonymousClass method from sun.misc.Unsafe has been removed
  • The netscape.javascript.JSObject.getWindow(Applet) method has been removed
  • The sun.nio.cs.map system property was removed
  • Behavior change in the javax.management.MBeanOperationInfo constructor
  • The JavaFX modules were removed from JDK 11
  • Do not use the removed javax.crypto.ExemptionMechanism.finalize() method
  • Behavior change in java.util.concurrent.ThreadPoolExecutor.finalize() method
  • Do not use removed runFinalizersOnExit methods
  • Check for removed methods on Pack200.Packer and Pack200.Unpacker interfaces
  • The java.util.jar.Pack200 APIs were removed
  • Do not use APIs from the com.sun.image.codec.jpeg package
  • The ObjectInputStream.GetField.get(name, object) method was changed to throw a ClassNotFoundException
  • Weak named curves have been removed
  • Do not use com.sun.org.apache JAXP internal classes
  • Do not use com.sun.org.apache JAXP package names in string literals
  • Do not use the removed com.sun.java.browser.plugin2.DOM and sun.plugin.dom.DOMObject APIs
  • Do not override the Path2D getPathIterator methods
  • Do not use the java.lang.Compiler class
  • Avoid using the removed RMI Activation package
  • Do not use the netdoc URL protocol
  • The java.security.acl package was removed
  • Do not use the com.sun.awt.SecurityWarning class
  • Do not use the ThreadGroup.allowThreadSuspension method
  • The java.awt.peer and java.awt.dnd.peer packages are not accessible
  • Do not use the removed methods addPropertyChangeListener or removePropertyChangeListener from LogManager
  • Avoid using the degraded ThreadGroup methods
  • java.lang.Thread.stop(java.lang.Throwable) is disabled
  • Avoid using Thread.stop(), Thread.resume(), and Thread.suspend() methods
  • Check for configuration changes related to the com.ibm.security.auth.module.Krb5LoginModule class

Probleme beim Upgrade der Version Java EE

  • Do not use OpenJPA strings for query hints or properties
  • OpenJPA and WebSphere JPA configuration properties must be migrated
  • Check for a behavior change in the InjectionPoint getAnnotated method
  • Check for a behavior change regarding duplicate elements in web descriptors
  • The openjpa.jdbc.Schema configuration property must be migrated to the mapping file
  • Classes that use both the Specializes and Alternative annotations are not injected into other modules