Riferimento alle correzioni assistite
watsonx Code Assistant Piano standard
Quando si modernizza o si aggiorna un'applicazione Java, watsonx Code Assistant assiste l'utente fornendo suggerimenti nella chat su come modificare il codice. Questo riferimento elenca i problemi di codice associati alle correzioni assistite.
Per ulteriori informazioni, consulta:
- Completare le correzioni assistite quando si modernizzano le applicazioni Java
- Completamento delle correzioni assistite quando si aggiornano le applicazioni Java
Problemi durante la modernizzazione di WebSphere Application Server a Liberty
The WebSphere ServletChain API was superseded by a newer implementationThe 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 implementationThe 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
Problemi quando si aggiorna la versione di Java SE
Avoid using default charset when the output stream is a PrintStreamThe defineAnonymousClass method from sun.misc.Unsafe has been removedThe netscape.javascript.JSObject.getWindow(Applet) method has been removedThe sun.nio.cs.map system property was removedBehavior change in the javax.management.MBeanOperationInfo constructorThe JavaFX modules were removed from JDK 11Do not use the removed javax.crypto.ExemptionMechanism.finalize() methodBehavior change in java.util.concurrent.ThreadPoolExecutor.finalize() methodDo not use removed runFinalizersOnExit methodsCheck for removed methods on Pack200.Packer and Pack200.Unpacker interfacesThe java.util.jar.Pack200 APIs were removedDo not use APIs from the com.sun.image.codec.jpeg packageThe ObjectInputStream.GetField.get(name, object) method was changed to throw a ClassNotFoundExceptionWeak named curves have been removedDo not use com.sun.org.apache JAXP internal classesDo not use com.sun.org.apache JAXP package names in string literalsDo not use the removed com.sun.java.browser.plugin2.DOM and sun.plugin.dom.DOMObject APIsDo not override the Path2D getPathIterator methodsDo not use the java.lang.Compiler classAvoid using the removed RMI Activation packageDo not use the netdoc URL protocolThe java.security.acl package was removedDo not use the com.sun.awt.SecurityWarning classDo not use the ThreadGroup.allowThreadSuspension methodThe java.awt.peer and java.awt.dnd.peer packages are not accessibleDo not use the removed methods addPropertyChangeListener or removePropertyChangeListener from LogManagerAvoid using the degraded ThreadGroup methodsjava.lang.Thread.stop(java.lang.Throwable) is disabledAvoid using Thread.stop(), Thread.resume(), and Thread.suspend() methodsCheck for configuration changes related to the com.ibm.security.auth.module.Krb5LoginModule class
Problemi quando si aggiorna la versione di Java EE
Do not use OpenJPA strings for query hints or propertiesOpenJPA and WebSphere JPA configuration properties must be migratedCheck for a behavior change in the InjectionPoint getAnnotated methodCheck for a behavior change regarding duplicate elements in web descriptorsThe openjpa.jdbc.Schema configuration property must be migrated to the mapping fileClasses that use both the Specializes and Alternative annotations are not injected into other modules