-
For Removal Element 描述 com.sun.java.accessibility.util.AWTEventMonitor.actionListener 该字段未使用。com.sun.java.accessibility.util.AWTEventMonitor.adjustmentListener 该字段未使用。com.sun.java.accessibility.util.AWTEventMonitor.componentListener 该字段未使用。com.sun.java.accessibility.util.AWTEventMonitor.componentWithFocus 该字段未使用; 获取具有焦点的组件使用getComponentWithFocus方法。com.sun.java.accessibility.util.AWTEventMonitor.containerListener 该字段未使用。com.sun.java.accessibility.util.AWTEventMonitor.focusListener 该字段未使用。com.sun.java.accessibility.util.AWTEventMonitor.itemListener 该字段未使用。com.sun.java.accessibility.util.AWTEventMonitor.keyListener 该字段未使用。com.sun.java.accessibility.util.AWTEventMonitor.mouseListener 该字段未使用。com.sun.java.accessibility.util.AWTEventMonitor.mouseMotionListener 该字段未使用。com.sun.java.accessibility.util.AWTEventMonitor.textListener 该字段未使用。com.sun.java.accessibility.util.AWTEventMonitor.windowListener 该字段未使用。com.sun.javadoc.AnnotatedType 此包中的声明已被包中的声明取代j jdk.javadoc.doclet
j。 有关更多信息,请参阅 该软件包文档中的迁移指南。com.sun.javadoc.AnnotationDesc The declarations in this package have been superseded by those in the packagejdk.javadoc.doclet
. For more information, see the Migration Guide in the documentation for that package.com.sun.javadoc.AnnotationDesc.ElementValuePair 此包中的声明已被包中的声明取代jdk.javadoc.doclet
。 有关更多信息,请参阅该软件包文档中的迁移指南。com.sun.javadoc.AnnotationTypeDoc 此包中的声明已被包中的声明取代jdk.javadoc.doclet
。 有关更多信息,请参阅该软件包文档中的迁移指南。com.sun.javadoc.AnnotationTypeElementDoc 此包中的声明已被包中的声明取代jdk.javadoc.doclet
。 有关更多信息,请参阅该软件包文档中的迁移指南。com.sun.javadoc.AnnotationValue 此包中的声明已被包中的声明取代jdk.javadoc.doclet
。 有关更多信息,请参阅该软件包文档中的迁移指南。com.sun.javadoc.ClassDoc 此包中的声明已被包中的声明取代jdk.javadoc.doclet
。 有关更多信息,请参阅该软件包文档中的迁移指南。com.sun.javadoc.ClassDoc.importedClasses() Import declarations are implementation details that should not be exposed here. In addition, not all imported classes are imported through single-type-import declarations.com.sun.javadoc.ClassDoc.importedPackages() Import declarations are implementation details that should not be exposed here. In addition, this method's return type does not allow for all type-import-on-demand declarations to be returned.com.sun.javadoc.ConstructorDoc 此包中的声明已被包中的声明取代jdk.javadoc.doclet
。 有关更多信息,请参阅该软件包文档中的迁移指南。com.sun.javadoc.Doc 此包中的声明已被包中的声明取代jdk.javadoc.doclet
。 有关更多信息,请参阅该软件包文档中的迁移指南。com.sun.javadoc.DocErrorReporter 此包中的声明已被包中的声明取代jdk.javadoc.doclet
。 有关更多信息,请参阅该软件包文档中的迁移指南。com.sun.javadoc.Doclet 此包中的声明已被包中的声明取代jdk.javadoc.doclet
。 有关更多信息,请参阅该软件包文档中的迁移指南。com.sun.javadoc.ExecutableMemberDoc 此包中的声明已被包中的声明取代jdk.javadoc.doclet
。 有关更多信息,请参阅该软件包文档中的迁移指南。com.sun.javadoc.FieldDoc 此包中的声明已被包中的声明取代jdk.javadoc.doclet
。 有关更多信息,请参阅该软件包文档中的迁移指南。com.sun.javadoc.LanguageVersion 此包中的声明已被包中的声明取代jdk.javadoc.doclet
。 有关更多信息,请参阅该软件包文档中的迁移指南。com.sun.javadoc.MemberDoc 此包中的声明已被包中的声明取代jdk.javadoc.doclet
。 有关更多信息,请参阅该软件包文档中的迁移指南。com.sun.javadoc.MethodDoc 此包中的声明已被包中的声明取代jdk.javadoc.doclet
。 有关更多信息,请参阅该软件包文档中的迁移指南。com.sun.javadoc.PackageDoc 此包中的声明已被包中的声明取代jdk.javadoc.doclet
。 有关更多信息,请参阅该软件包文档中的迁移指南。com.sun.javadoc.Parameter 此包中的声明已被包中的声明取代jdk.javadoc.doclet
。 有关更多信息,请参阅该软件包文档中的迁移指南。com.sun.javadoc.ParameterizedType 此包中的声明已被包中的声明取代jdk.javadoc.doclet
。 有关更多信息,请参阅该软件包文档中的迁移指南。com.sun.javadoc.ParamTag 此包中的声明已被包中的声明取代jdk.javadoc.doclet
。 有关更多信息,请参阅该软件包文档中的迁移指南。com.sun.javadoc.ProgramElementDoc 此包中的声明已被包中的声明取代jdk.javadoc.doclet
。 有关更多信息,请参阅该软件包文档中的迁移指南。com.sun.javadoc.RootDoc 此包中的声明已被包中的声明取代jdk.javadoc.doclet
。 有关更多信息,请参阅该软件包文档中的迁移指南。com.sun.javadoc.SeeTag 此包中的声明已被包中的声明取代jdk.javadoc.doclet
。 有关更多信息,请参阅该软件包文档中的迁移指南。com.sun.javadoc.SerialFieldTag 此包中的声明已被包中的声明取代jdk.javadoc.doclet
。 有关更多信息,请参阅该软件包文档中的迁移指南。com.sun.javadoc.SourcePosition 此包中的声明已被包中的声明取代jdk.javadoc.doclet
。 有关更多信息,请参阅该软件包文档中的迁移指南。com.sun.javadoc.Tag 此包中的声明已被包中的声明取代jdk.javadoc.doclet
。 有关更多信息,请参阅该软件包文档中的迁移指南。com.sun.javadoc.ThrowsTag 此包中的声明已被包中的声明取代jdk.javadoc.doclet
。 有关更多信息,请参阅该软件包文档中的迁移指南。com.sun.javadoc.Type 此包中的声明已被包中的声明取代jdk.javadoc.doclet
。 有关更多信息,请参阅该软件包文档中的迁移指南。com.sun.javadoc.TypeVariable 此包中的声明已被包中的声明取代jdk.javadoc.doclet
。 有关更多信息,请参阅该软件包文档中的迁移指南。com.sun.javadoc.WildcardType 此包中的声明已被包中的声明取代jdk.javadoc.doclet
。 有关更多信息,请参阅该软件包文档中的迁移指南。com.sun.tools.javadoc.Main This class is now deprecated and may be removed in a future release. Seejavax.tools.ToolProvider::getSystemDocumentationTool
andjavax.tools.DocumentationTool
for replacement functionality.java.io.FileInputStream.finalize() Thefinalize
method has been deprecated and will be removed. Subclasses that overridefinalize
in order to perform cleanup should be modified to use alternative cleanup mechanisms and to remove the overridingfinalize
method. When overriding thefinalize
method, its implementation must explicitly ensure thatsuper.finalize()
is invoked as described inObject.finalize()
. See the specification forObject.finalize()
for further information about migration options.java.io.FileOutputStream.finalize() Thefinalize
method has been deprecated and will be removed. Subclasses that overridefinalize
in order to perform cleanup should be modified to use alternative cleanup mechanisms and to remove the overridingfinalize
method. When overriding thefinalize
method, its implementation must explicitly ensure thatsuper.finalize()
is invoked as described inObject.finalize()
. See the specification forObject.finalize()
for further information about migration options.java.lang.Compiler JIT compilers and their technologies vary too widely to be controlled effectively by a standardized interface. As such, many JIT compiler implementations ignore this interface, and are instead controllable by implementation-specific mechanisms such as command-line options. This class is subject to removal in a future version of Java SE.java.lang.Runtime.traceInstructions(boolean) This method was intended to control instruction tracing. It has been superseded by JVM-specific tracing mechanisms. This method is subject to removal in a future version of Java SE.java.lang.Runtime.traceMethodCalls(boolean) This method was intended to control method call tracing. It has been superseded by JVM-specific tracing mechanisms. This method is subject to removal in a future version of Java SE.java.lang.Thread.countStackFrames() The definition of this call depends onThread.suspend()
, which is deprecated. Further, the results of this call were never well-defined. This method is subject to removal in a future version of Java SE.java.security.acl.Acl This class is deprecated and subject to removal in a future version of Java SE. It has been replaced byjava.security.Policy
and related classes since 1.2.java.security.acl.AclEntry This class is deprecated and subject to removal in a future version of Java SE. It has been replaced byjava.security.Policy
and related classes since 1.2.java.security.acl.AclNotFoundException This class is deprecated and subject to removal in a future version of Java SE. It has been replaced byjava.security.Policy
and related classes since 1.2.java.security.acl.Group This class is deprecated and subject to removal in a future version of Java SE. It has been replaced byjava.security.Policy
and related classes since 1.2.java.security.acl.LastOwnerException This class is deprecated and subject to removal in a future version of Java SE. It has been replaced byjava.security.Policy
and related classes since 1.2.java.security.acl.NotOwnerException This class is deprecated and subject to removal in a future version of Java SE. It has been replaced byjava.security.Policy
and related classes since 1.2.java.security.acl.Owner This class is deprecated and subject to removal in a future version of Java SE. It has been replaced byjava.security.Policy
and related classes since 1.2.java.security.acl.Permission This class is deprecated and subject to removal in a future version of Java SE. It has been replaced byjava.security.Policy
and related classes since 1.2.java.security.Certificate This class is deprecated and subject to removal in a future version of Java SE. It has been replaced byjava.security.cert.Certificate
and related classes.java.security.Identity This class is deprecated and subject to removal in a future version of Java SE. It has been replaced byjava.security.KeyStore
, thejava.security.cert
package, andjava.security.Principal
.java.security.IdentityScope This class is deprecated and subject to removal in a future version of Java SE. It has been replaced byjava.security.KeyStore
, thejava.security.cert
package, andjava.security.Principal
.java.security.Signer This class is deprecated and subject to removal in a future version of Java SE. It has been replaced byjava.security.KeyStore
, thejava.security.cert
package, andjava.security.Principal
.java.util.jar.Pack200 This class is deprecated, and is planned for removal in a future release.java.util.jar.Pack200.Packer This interface is deprecated, and is planned for removal in a future release.java.util.jar.Pack200.Unpacker This interface is deprecated, and is planned for removal in a future release.java.util.zip.Deflater.finalize() Thefinalize
method has been deprecated and will be removed. It is implemented as a no-op. Subclasses that overridefinalize
in order to perform cleanup should be modified to use alternative cleanup mechanisms and to remove the overridingfinalize
method. The recommended cleanup for compressor is to explicitly callend
method when it is no longer in use. If theend
is not invoked explicitly the resource of the compressor will be released when the instance becomes unreachable.java.util.zip.Inflater.finalize() Thefinalize
method has been deprecated and will be removed. It is implemented as a no-op. Subclasses that overridefinalize
in order to perform cleanup should be modified to use alternative cleanup mechanisms and remove the overridingfinalize
method. The recommended cleanup for compressor is to explicitly callend
method when it is no longer in use. If theend
is not invoked explicitly the resource of the compressor will be released when the instance becomes unreachable,java.util.zip.ZipFile.finalize() Thefinalize
method has been deprecated and will be removed. It is implemented as a no-op. Subclasses that overridefinalize
in order to perform cleanup should be modified to use alternative cleanup mechanisms and to remove the overridingfinalize
method. The recommended cleanup for ZipFile object is to explicitly invokeclose
method when it is no longer in use, or use try-with-resources. If theclose
is not invoked explicitly the resources held by this object will be released when the instance becomes unreachable.javax.management.remote.rmi.RMIConnectorServer.CREDENTIAL_TYPES UseRMIConnectorServer.CREDENTIALS_FILTER_PATTERN
with a filter pattern string instead.jdk.nashorn.api.scripting.AbstractJSObject Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.scripting.ClassFilter Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.scripting.JSObject Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.scripting.NashornException Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.scripting.NashornScriptEngine Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.scripting.NashornScriptEngineFactory Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.scripting.ScriptObjectMirror Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.scripting.ScriptUtils Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.scripting.URLReader Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.ArrayAccessTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.ArrayLiteralTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.AssignmentTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.BinaryTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.BlockTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.BreakTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.CaseTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.CatchTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.ClassDeclarationTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.ClassExpressionTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.CompilationUnitTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.CompoundAssignmentTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.ConditionalExpressionTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.ConditionalLoopTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.ContinueTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.DebuggerTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.Diagnostic Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.Diagnostic.Kind Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.DiagnosticListener Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.DoWhileLoopTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.EmptyStatementTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.ErroneousTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.ExportEntryTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.ExpressionStatementTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.ExpressionTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.ForInLoopTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.ForLoopTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.ForOfLoopTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.FunctionCallTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.FunctionDeclarationTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.FunctionExpressionTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.GotoTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.IdentifierTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.IfTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.ImportEntryTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.InstanceOfTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.LabeledStatementTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.LineMap Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.LiteralTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.LoopTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.MemberSelectTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.ModuleTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.NewTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.ObjectLiteralTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.ParenthesizedTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.Parser Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.PropertyTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.RegExpLiteralTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.ReturnTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.SimpleTreeVisitorES5_1 Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.SimpleTreeVisitorES6 Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.SpreadTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.StatementTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.SwitchTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.TemplateLiteralTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.ThrowTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.Tree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.Tree.Kind Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.TreeVisitor Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.TryTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.UnaryTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.UnknownTreeException Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.VariableTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.WhileLoopTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.WithTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.YieldTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.pack This module is deprecated, and is planned for removal in a future release.jdk.scripting.nashorn Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。
-
Modules 模块 描述 jdk.pack This module is deprecated, and is planned for removal in a future release.jdk.scripting.nashorn Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。
-
Interfaces 接口 描述 com.sun.jarsigner.ContentSignerParameters This class has been deprecated.com.sun.javadoc.AnnotatedType 此包中的声明已被包中的声明取代jdk.javadoc.doclet
。 有关更多信息,请参阅该软件包文档中的迁移指南。com.sun.javadoc.AnnotationDesc 此包中的声明已被包中的声明取代jdk.javadoc.doclet
。 有关更多信息,请参阅该软件包文档中的迁移指南。com.sun.javadoc.AnnotationDesc.ElementValuePair 此包中的声明已被包中的声明取代jdk.javadoc.doclet
。 有关更多信息,请参阅该软件包文档中的迁移指南。com.sun.javadoc.AnnotationTypeDoc 此包中的声明已被包中的声明取代jdk.javadoc.doclet
。 有关更多信息,请参阅该软件包文档中的迁移指南。com.sun.javadoc.AnnotationTypeElementDoc 此包中的声明已被包中的声明取代jdk.javadoc.doclet
。 有关更多信息,请参阅该软件包文档中的迁移指南。com.sun.javadoc.AnnotationValue 此包中的声明已被包中的声明取代jdk.javadoc.doclet
。 有关更多信息,请参阅该软件包文档中的迁移指南。com.sun.javadoc.ClassDoc 此包中的声明已被包中的声明取代jdk.javadoc.doclet
。 有关更多信息,请参阅该软件包文档中的迁移指南。com.sun.javadoc.ConstructorDoc 此包中的声明已被包中的声明取代jdk.javadoc.doclet
。 有关更多信息,请参阅该软件包文档中的迁移指南。com.sun.javadoc.Doc 此包中的声明已被包中的声明取代jdk.javadoc.doclet
。 有关更多信息,请参阅该软件包文档中的迁移指南。com.sun.javadoc.DocErrorReporter 此包中的声明已被包中的声明取代jdk.javadoc.doclet
。 有关更多信息,请参阅该软件包文档中的迁移指南。com.sun.javadoc.ExecutableMemberDoc 此包中的声明已被包中的声明取代jdk.javadoc.doclet
。 有关更多信息,请参阅该软件包文档中的迁移指南。com.sun.javadoc.FieldDoc 此包中的声明已被包中的声明取代jdk.javadoc.doclet
。 有关更多信息,请参阅该软件包文档中的迁移指南。com.sun.javadoc.MemberDoc 此包中的声明已被包中的声明取代jdk.javadoc.doclet
。 有关更多信息,请参阅该软件包文档中的迁移指南。com.sun.javadoc.MethodDoc 此包中的声明已被包中的声明取代jdk.javadoc.doclet
。 有关更多信息,请参阅该软件包文档中的迁移指南。com.sun.javadoc.PackageDoc 此包中的声明已被包中的声明取代jdk.javadoc.doclet
。 有关更多信息,请参阅该软件包文档中的迁移指南。com.sun.javadoc.Parameter 此包中的声明已被包中的声明取代jdk.javadoc.doclet
。 有关更多信息,请参阅该软件包文档中的迁移指南。com.sun.javadoc.ParameterizedType 此包中的声明已被包中的声明取代jdk.javadoc.doclet
。 有关更多信息,请参阅该软件包文档中的迁移指南。com.sun.javadoc.ParamTag 此包中的声明已被包中的声明取代jdk.javadoc.doclet
。 有关更多信息,请参阅该软件包文档中的迁移指南。com.sun.javadoc.ProgramElementDoc 此包中的声明已被包中的声明取代jdk.javadoc.doclet
。 有关更多信息,请参阅该软件包文档中的迁移指南。com.sun.javadoc.RootDoc 此包中的声明已被包中的声明取代jdk.javadoc.doclet
。 有关更多信息,请参阅该软件包文档中的迁移指南。com.sun.javadoc.SeeTag 此包中的声明已被包中的声明取代jdk.javadoc.doclet
。 有关更多信息,请参阅该软件包文档中的迁移指南。com.sun.javadoc.SerialFieldTag 此包中的声明已被包中的声明取代jdk.javadoc.doclet
。 有关更多信息,请参阅该软件包文档中的迁移指南。com.sun.javadoc.SourcePosition 此包中的声明已被包中的声明取代jdk.javadoc.doclet
。 有关更多信息,请参阅该软件包文档中的迁移指南。com.sun.javadoc.Tag 此包中的声明已被包中的声明取代jdk.javadoc.doclet
。 有关更多信息,请参阅该软件包文档中的迁移指南。com.sun.javadoc.ThrowsTag 此包中的声明已被包中的声明取代jdk.javadoc.doclet
。 有关更多信息,请参阅该软件包文档中的迁移指南。com.sun.javadoc.Type 此包中的声明已被包中的声明取代jdk.javadoc.doclet
。 有关更多信息,请参阅该软件包文档中的迁移指南。com.sun.javadoc.TypeVariable 此包中的声明已被包中的声明取代jdk.javadoc.doclet
。 有关更多信息,请参阅该软件包文档中的迁移指南。com.sun.javadoc.WildcardType 此包中的声明已被包中的声明取代jdk.javadoc.doclet
。 有关更多信息,请参阅该软件包文档中的迁移指南。java.applet.AppletContext The Applet API is deprecated, no replacement.java.applet.AppletStub The Applet API is deprecated, no replacement.java.applet.AudioClip The Applet API is deprecated, no replacement.java.beans.AppletInitializer The Applet API is deprecated. See the java.applet package documentation for further information.java.rmi.registry.RegistryHandler no replacementjava.rmi.server.LoaderHandler no replacementjava.rmi.server.RemoteCall no replacement.java.rmi.server.ServerRef No replacement. This interface is unused and is obsolete.java.rmi.server.Skeleton no replacement. Skeletons are no longer required for remote method calls in the Java 2 platform v1.2 and greater.java.security.acl.Acl This class is deprecated and subject to removal in a future version of Java SE. It has been replaced byjava.security.Policy
and related classes since 1.2.java.security.acl.AclEntry This class is deprecated and subject to removal in a future version of Java SE. It has been replaced byjava.security.Policy
and related classes since 1.2.java.security.acl.Group This class is deprecated and subject to removal in a future version of Java SE. It has been replaced byjava.security.Policy
and related classes since 1.2.java.security.acl.Owner This class is deprecated and subject to removal in a future version of Java SE. It has been replaced byjava.security.Policy
and related classes since 1.2.java.security.acl.Permission This class is deprecated and subject to removal in a future version of Java SE. It has been replaced byjava.security.Policy
and related classes since 1.2.java.security.Certificate This class is deprecated and subject to removal in a future version of Java SE. It has been replaced byjava.security.cert.Certificate
and related classes.java.util.jar.Pack200.Packer This interface is deprecated, and is planned for removal in a future release.java.util.jar.Pack200.Unpacker This interface is deprecated, and is planned for removal in a future release.java.util.logging.LoggingMXBean LoggingMXBean
is no longer aplatform MXBean
and is replaced withPlatformLoggingMXBean
. It will not register in the platformMBeanServer
. UseManagementFactory.getPlatformMXBean(PlatformLoggingMXBean.class)
instead.java.util.Observer This interface has been deprecated. See theObservable
class for further information.jdk.nashorn.api.scripting.ClassFilter Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.scripting.JSObject Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.ArrayAccessTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.ArrayLiteralTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.AssignmentTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.BinaryTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.BlockTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.BreakTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.CaseTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.CatchTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.ClassDeclarationTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.ClassExpressionTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.CompilationUnitTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.CompoundAssignmentTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.ConditionalExpressionTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.ConditionalLoopTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.ContinueTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.DebuggerTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.Diagnostic Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.DiagnosticListener Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.DoWhileLoopTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.EmptyStatementTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.ErroneousTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.ExportEntryTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.ExpressionStatementTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.ExpressionTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.ForInLoopTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.ForLoopTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.ForOfLoopTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.FunctionCallTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.FunctionDeclarationTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.FunctionExpressionTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.GotoTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.IdentifierTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.IfTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.ImportEntryTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.InstanceOfTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.LabeledStatementTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.LineMap Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.LiteralTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.LoopTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.MemberSelectTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.ModuleTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.NewTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.ObjectLiteralTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.ParenthesizedTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.Parser Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.PropertyTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.RegExpLiteralTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.ReturnTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.SpreadTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.StatementTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.SwitchTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.TemplateLiteralTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.ThrowTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.Tree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.TreeVisitor Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.TryTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.UnaryTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.VariableTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.WhileLoopTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.WithTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.YieldTree Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。org.xml.sax.AttributeList This interface has been replaced by the SAX2Attributes
interface, which includes Namespace support.org.xml.sax.DocumentHandler This interface has been replaced by the SAX2ContentHandler
interface, which includes Namespace support.org.xml.sax.Parser This interface has been replaced by the SAX2XMLReader
interface, which includes Namespace support.
-
Classes 类 描述 com.sun.jarsigner.ContentSigner This class has been deprecated.com.sun.javadoc.Doclet 此包中的声明已被包中的声明取代jdk.javadoc.doclet
。 有关更多信息,请参阅该软件包文档中的迁移指南。com.sun.tools.javadoc.Main This class is now deprecated and may be removed in a future release. Seejavax.tools.ToolProvider::getSystemDocumentationTool
andjavax.tools.DocumentationTool
for replacement functionality.java.applet.Applet The Applet API is deprecated, no replacement.java.awt.Event It is recommended thatAWTEvent
and its subclasses be used insteadjava.io.LineNumberInputStream This class incorrectly assumes that bytes adequately represent characters. As of JDK 1.1, the preferred way to operate on character streams is via the new character-stream classes, which include a class for counting line numbers.java.io.StringBufferInputStream This class does not properly convert characters into bytes. As of JDK 1.1, the preferred way to create a stream from a string is via theStringReader
class.java.lang.Compiler JIT compilers and their technologies vary too widely to be controlled effectively by a standardized interface. As such, many JIT compiler implementations ignore this interface, and are instead controllable by implementation-specific mechanisms such as command-line options. This class is subject to removal in a future version of Java SE.java.rmi.RMISecurityManager UseSecurityManager
instead.java.rmi.server.LogStream no replacementjava.rmi.server.Operation no replacementjava.rmi.server.RemoteStub Statically generated stubs are deprecated, since stubs are generated dynamically. SeeUnicastRemoteObject
for information about dynamic stub generation.java.security.Identity This class is deprecated and subject to removal in a future version of Java SE. It has been replaced byjava.security.KeyStore
, thejava.security.cert
package, andjava.security.Principal
.java.security.IdentityScope This class is deprecated and subject to removal in a future version of Java SE. It has been replaced byjava.security.KeyStore
, thejava.security.cert
package, andjava.security.Principal
.java.security.Signer This class is deprecated and subject to removal in a future version of Java SE. It has been replaced byjava.security.KeyStore
, thejava.security.cert
package, andjava.security.Principal
.java.util.jar.Pack200 This class is deprecated, and is planned for removal in a future release.java.util.Observable This class and theObserver
interface have been deprecated. The event model supported byObserver
andObservable
is quite limited, the order of notifications delivered byObservable
is unspecified, and state changes are not in one-for-one correspondence with notifications. For a richer event model, consider using thejava.beans
package. For reliable and ordered messaging among threads, consider using one of the concurrent data structures in thejava.util.concurrent
package. For reactive streams style programming, see theFlow
API.javax.accessibility.AccessibleResourceBundle This class is deprecated as of version 1.3 of the Java Platformjavax.management.DefaultLoaderRepository UseMBeanServer.getClassLoaderRepository()
instead.javax.management.loading.DefaultLoaderRepository UseMBeanServer.getClassLoaderRepository()
instead.javax.management.remote.rmi.RMIIIOPServerImpl This transport is no longer supported.javax.security.cert.Certificate Use the classes injava.security.cert
instead.javax.security.cert.X509Certificate Use the classes injava.security.cert
instead.javax.swing.JApplet The Applet API is deprecated, no replacement.javax.swing.JComponent.AccessibleJComponent.AccessibleFocusHandler This class is no longer used or needed.java.awt.Component.AccessibleAWTComponent
provides the same functionality and it is handled inComponent
.javax.swing.plaf.metal.MetalComboBoxUI.MetalComboPopup As of Java 2 platform v1.4.javax.swing.plaf.metal.MetalFileChooserUI.FileRenderer As of JDK version 9. Obsolete class.javax.swing.plaf.metal.MetalFileChooserUI.SingleClickListener As of JDK version 9. Obsolete class.javax.swing.text.DefaultTextUI javax.swing.text.TableView.TableCell A table cell can now be any View implementation.jdk.nashorn.api.scripting.AbstractJSObject Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.scripting.NashornScriptEngine Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.scripting.NashornScriptEngineFactory Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.scripting.ScriptObjectMirror Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.scripting.ScriptUtils Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.scripting.URLReader Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.SimpleTreeVisitorES5_1 Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.SimpleTreeVisitorES6 Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。org.xml.sax.HandlerBase This class works with the deprecatedDocumentHandler
interface. It has been replaced by the SAX2DefaultHandler
class.org.xml.sax.helpers.AttributeListImpl This class implements a deprecated interface,AttributeList
; that interface has been replaced byAttributes
, which is implemented in theAttributesImpl
helper class.org.xml.sax.helpers.ParserFactory This class works with the deprecatedParser
interface.org.xml.sax.helpers.XMLReaderFactory It is recommended to useSAXParserFactory
instead.
-
Enums Enum 描述 com.sun.javadoc.LanguageVersion 此包中的声明已被包中的声明取代jdk.javadoc.doclet
。 有关更多信息,请参阅该软件包文档中的迁移指南。jdk.nashorn.api.tree.Diagnostic.Kind Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.Tree.Kind Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。
-
Exceptions Exceptions 描述 com.sun.jdi.InvalidCodeIndexException This exception is no longer throwncom.sun.jdi.InvalidLineNumberException This exception is no longer thrownjava.rmi.RMISecurityException UseSecurityException
instead. Application code should never directly reference this class, andRMISecurityManager
no longer throws this subclass ofjava.lang.SecurityException
.java.rmi.server.SkeletonMismatchException no replacement. Skeletons are no longer required for remote method calls in the Java 2 platform v1.2 and greater.java.rmi.server.SkeletonNotFoundException no replacement. Skeletons are no longer required for remote method calls in the Java 2 platform v1.2 and greater.java.rmi.server.SocketSecurityException This class is obsolete. UseExportException
instead.java.rmi.ServerRuntimeException no replacementjava.security.acl.AclNotFoundException This class is deprecated and subject to removal in a future version of Java SE. It has been replaced byjava.security.Policy
and related classes since 1.2.java.security.acl.LastOwnerException This class is deprecated and subject to removal in a future version of Java SE. It has been replaced byjava.security.Policy
and related classes since 1.2.java.security.acl.NotOwnerException This class is deprecated and subject to removal in a future version of Java SE. It has been replaced byjava.security.Policy
and related classes since 1.2.javax.security.cert.CertificateEncodingException Use the classes injava.security.cert
instead.javax.security.cert.CertificateException Use the classes injava.security.cert
instead.javax.security.cert.CertificateExpiredException Use the classes injava.security.cert
instead.javax.security.cert.CertificateNotYetValidException Use the classes injava.security.cert
instead.javax.security.cert.CertificateParsingException Use the classes injava.security.cert
instead.jdk.nashorn.api.scripting.NashornException Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。jdk.nashorn.api.tree.UnknownTreeException Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。
-
Methods 方法 描述 com.sun.javadoc.ClassDoc.importedClasses() Import declarations are implementation details that should not be exposed here. In addition, not all imported classes are imported through single-type-import declarations.com.sun.javadoc.ClassDoc.importedPackages() Import declarations are implementation details that should not be exposed here. In addition, this method's return type does not allow for all type-import-on-demand declarations to be returned.java.awt.AWTKeyStroke.registerSubclass(Class<?>) java.awt.BorderLayout.addLayoutComponent(String, Component) replaced byaddLayoutComponent(Component, Object)
.java.awt.CardLayout.addLayoutComponent(String, Component) replaced byaddLayoutComponent(Component, Object)
.java.awt.CheckboxGroup.getCurrent() As of JDK version 1.1, replaced bygetSelectedCheckbox()
.java.awt.CheckboxGroup.setCurrent(Checkbox) As of JDK version 1.1, replaced bysetSelectedCheckbox(Checkbox)
.java.awt.Choice.countItems() As of JDK version 1.1, replaced bygetItemCount()
.java.awt.color.ICC_Profile.finalize() Thefinalize
method has been deprecated. Subclasses that overridefinalize
in order to perform cleanup should be modified to use alternative cleanup mechanisms and to remove the overridingfinalize
method. When overriding thefinalize
method, its implementation must explicitly ensure thatsuper.finalize()
is invoked as described inObject.finalize()
. See the specification forObject.finalize()
for further information about migration options.java.awt.Component.action(Event, Object) As of JDK version 1.1, should register this component as ActionListener on component which fires action events.java.awt.Component.bounds() As of JDK version 1.1, replaced bygetBounds()
.java.awt.Component.deliverEvent(Event) As of JDK version 1.1, replaced bydispatchEvent(AWTEvent e)
.java.awt.Component.disable() As of JDK version 1.1, replaced bysetEnabled(boolean)
.java.awt.Component.enable() As of JDK version 1.1, replaced bysetEnabled(boolean)
.java.awt.Component.gotFocus(Event, Object) As of JDK version 1.1, replaced by processFocusEvent(FocusEvent).java.awt.Component.handleEvent(Event) As of JDK version 1.1 replaced by processEvent(AWTEvent).java.awt.Component.hide() As of JDK version 1.1, replaced bysetVisible(boolean)
.java.awt.Component.inside(int, int) As of JDK version 1.1, replaced by contains(int, int).java.awt.Component.isFocusTraversable() As of 1.4, replaced byisFocusable()
.java.awt.Component.keyDown(Event, int) As of JDK version 1.1, replaced by processKeyEvent(KeyEvent).java.awt.Component.keyUp(Event, int) As of JDK version 1.1, replaced by processKeyEvent(KeyEvent).java.awt.Component.layout() As of JDK version 1.1, replaced bydoLayout()
.java.awt.Component.locate(int, int) As of JDK version 1.1, replaced by getComponentAt(int, int).java.awt.Component.location() As of JDK version 1.1, replaced bygetLocation()
.java.awt.Component.lostFocus(Event, Object) As of JDK version 1.1, replaced by processFocusEvent(FocusEvent).java.awt.Component.minimumSize() As of JDK version 1.1, replaced bygetMinimumSize()
.java.awt.Component.mouseDown(Event, int, int) As of JDK version 1.1, replaced by processMouseEvent(MouseEvent).java.awt.Component.mouseDrag(Event, int, int) As of JDK version 1.1, replaced by processMouseMotionEvent(MouseEvent).java.awt.Component.mouseEnter(Event, int, int) As of JDK version 1.1, replaced by processMouseEvent(MouseEvent).java.awt.Component.mouseExit(Event, int, int) As of JDK version 1.1, replaced by processMouseEvent(MouseEvent).java.awt.Component.mouseMove(Event, int, int) As of JDK version 1.1, replaced by processMouseMotionEvent(MouseEvent).java.awt.Component.mouseUp(Event, int, int) As of JDK version 1.1, replaced by processMouseEvent(MouseEvent).java.awt.Component.move(int, int) As of JDK version 1.1, replaced bysetLocation(int, int)
.java.awt.Component.nextFocus() As of JDK version 1.1, replaced by transferFocus().java.awt.Component.postEvent(Event) As of JDK version 1.1, replaced by dispatchEvent(AWTEvent).java.awt.Component.preferredSize() As of JDK version 1.1, replaced bygetPreferredSize()
.java.awt.Component.reshape(int, int, int, int) As of JDK version 1.1, replaced bysetBounds(int, int, int, int)
.java.awt.Component.resize(int, int) As of JDK version 1.1, replaced bysetSize(int, int)
.java.awt.Component.show() As of JDK version 1.1, replaced bysetVisible(boolean)
.java.awt.Component.size() As of JDK version 1.1, replaced bygetSize()
.java.awt.ComponentOrientation.getOrientation(ResourceBundle) As of J2SE 1.4, useComponentOrientation.getOrientation(java.util.Locale)
.java.awt.Container.countComponents() As of JDK version 1.1, replaced by getComponentCount().java.awt.Container.deliverEvent(Event) As of JDK version 1.1, replaced bydispatchEvent(AWTEvent e)
java.awt.Container.insets() As of JDK version 1.1, replaced bygetInsets()
.java.awt.Container.layout() As of JDK version 1.1, replaced bydoLayout()
.java.awt.Container.locate(int, int) As of JDK version 1.1, replaced bygetComponentAt(int, int)
.java.awt.Container.minimumSize() As of JDK version 1.1, replaced bygetMinimumSize()
.java.awt.Container.preferredSize() As of JDK version 1.1, replaced bygetPreferredSize()
.java.awt.datatransfer.DataFlavor.equals(String) As inconsistent withhashCode()
contract, useDataFlavor.isMimeTypeEqual(String)
instead.java.awt.datatransfer.DataFlavor.normalizeMimeType(String) This method is never invoked by this implementation from 1.1 onwardsjava.awt.datatransfer.DataFlavor.normalizeMimeTypeParameter(String, String) This method is never invoked by this implementation from 1.1 onwardsjava.awt.Dialog.hide() As of JDK version 1.5, replaced bysetVisible(boolean)
.java.awt.Dialog.show() As of JDK version 1.5, replaced bysetVisible(boolean)
.java.awt.event.InputEvent.getModifiers() It is recommended that extended modifier keys andInputEvent.getModifiersEx()
be used insteadjava.awt.event.KeyEvent.getKeyModifiersText(int) It is recommended that extended modifier keys andInputEvent.getModifiersExText(int)
be used insteadjava.awt.event.KeyEvent.setModifiers(int) as of JDK1.1.4java.awt.FontMetrics.getMaxDecent() As of JDK version 1.1.1, replaced bygetMaxDescent()
.java.awt.Frame.getCursorType() As of JDK version 1.1, replaced byComponent.getCursor()
.java.awt.Frame.setCursor(int) As of JDK version 1.1, replaced byComponent.setCursor(Cursor)
.java.awt.Graphics.finalize() Thefinalize
method has been deprecated. Subclasses that overridefinalize
in order to perform cleanup should be modified to use alternative cleanup mechanisms and to remove the overridingfinalize
method. When overriding thefinalize
method, its implementation must explicitly ensure thatsuper.finalize()
is invoked as described inObject.finalize()
. See the specification forObject.finalize()
for further information about migration options.java.awt.Graphics.getClipRect() As of JDK version 1.1, replaced bygetClipBounds()
.java.awt.image.ColorModel.finalize() Thefinalize
method has been deprecated. Subclasses that overridefinalize
in order to perform cleanup should be modified to use alternative cleanup mechanisms and to remove the overridingfinalize
method. When overriding thefinalize
method, its implementation must explicitly ensure thatsuper.finalize()
is invoked as described inObject.finalize()
. See the specification forObject.finalize()
for further information about migration options.java.awt.image.IndexColorModel.finalize() Thefinalize
method has been deprecated. Subclasses that overridefinalize
in order to perform cleanup should be modified to use alternative cleanup mechanisms and to remove the overridingfinalize
method. When overriding thefinalize
method, its implementation must explicitly ensure thatsuper.finalize()
is invoked as described inObject.finalize()
. See the specification forObject.finalize()
for further information about migration options.java.awt.image.renderable.RenderContext.concetenateTransform(AffineTransform) replaced byconcatenateTransform(AffineTransform)
.java.awt.image.renderable.RenderContext.preConcetenateTransform(AffineTransform) replaced bypreConcatenateTransform(AffineTransform)
.java.awt.List.addItem(String) replaced byadd(String)
.java.awt.List.allowsMultipleSelections() As of JDK version 1.1, replaced byisMultipleMode()
.java.awt.List.clear() As of JDK version 1.1, replaced byremoveAll()
.java.awt.List.countItems() As of JDK version 1.1, replaced bygetItemCount()
.java.awt.List.delItem(int) replaced byremove(String)
andremove(int)
.java.awt.List.delItems(int, int) As of JDK version 1.1, Not for public use in the future. This method is expected to be retained only as a package private method.java.awt.List.isSelected(int) As of JDK version 1.1, replaced byisIndexSelected(int)
.java.awt.List.minimumSize(int) As of JDK version 1.1, replaced bygetMinimumSize(int)
.java.awt.List.preferredSize(int) As of JDK version 1.1, replaced bygetPreferredSize(int)
.java.awt.List.setMultipleSelections(boolean) As of JDK version 1.1, replaced bysetMultipleMode(boolean)
.java.awt.Menu.countItems() As of JDK version 1.1, replaced bygetItemCount()
.java.awt.MenuBar.countMenus() As of JDK version 1.1, replaced bygetMenuCount()
.java.awt.MenuComponent.postEvent(Event) As of JDK version 1.1, replaced bydispatchEvent
.java.awt.MenuContainer.postEvent(Event) As of JDK version 1.1 replaced by dispatchEvent(AWTEvent).java.awt.MenuItem.disable() As of JDK version 1.1, replaced bysetEnabled(boolean)
.java.awt.MenuItem.enable() As of JDK version 1.1, replaced bysetEnabled(boolean)
.java.awt.Polygon.getBoundingBox() As of JDK version 1.1, replaced bygetBounds()
.java.awt.Polygon.inside(int, int) As of JDK version 1.1, replaced bycontains(int, int)
.java.awt.PrintJob.finalize() Thefinalize
method has been deprecated. Subclasses that overridefinalize
in order to perform cleanup should be modified to use alternative cleanup mechanisms and to remove the overridingfinalize
method. When overriding thefinalize
method, its implementation must explicitly ensure thatsuper.finalize()
is invoked as described inObject.finalize()
. See the specification forObject.finalize()
for further information about migration options.java.awt.Rectangle.inside(int, int) As of JDK version 1.1, replaced bycontains(int, int)
.java.awt.Rectangle.move(int, int) As of JDK version 1.1, replaced bysetLocation(int, int)
.java.awt.Rectangle.reshape(int, int, int, int) As of JDK version 1.1, replaced bysetBounds(int, int, int, int)
.java.awt.Rectangle.resize(int, int) As of JDK version 1.1, replaced bysetSize(int, int)
.java.awt.Scrollbar.getLineIncrement() As of JDK version 1.1, replaced bygetUnitIncrement()
.java.awt.Scrollbar.getPageIncrement() As of JDK version 1.1, replaced bygetBlockIncrement()
.java.awt.Scrollbar.getVisible() As of JDK version 1.1, replaced bygetVisibleAmount()
.java.awt.Scrollbar.setLineIncrement(int) As of JDK version 1.1, replaced bysetUnitIncrement(int)
.java.awt.Scrollbar.setPageIncrement(int) As of JDK version 1.1, replaced bysetBlockIncrement()
.java.awt.ScrollPane.layout() As of JDK version 1.1, replaced bydoLayout()
.java.awt.TextArea.appendText(String) As of JDK version 1.1, replaced byappend(String)
.java.awt.TextArea.insertText(String, int) As of JDK version 1.1, replaced byinsert(String, int)
.java.awt.TextArea.minimumSize(int, int) As of JDK version 1.1, replaced bygetMinimumSize(int, int)
.java.awt.TextArea.preferredSize(int, int) As of JDK version 1.1, replaced bygetPreferredSize(int, int)
.java.awt.TextArea.replaceText(String, int, int) As of JDK version 1.1, replaced byreplaceRange(String, int, int)
.java.awt.TextField.minimumSize(int) As of JDK version 1.1, replaced bygetMinimumSize(int)
.java.awt.TextField.preferredSize(int) As of JDK version 1.1, replaced bygetPreferredSize(int)
.java.awt.TextField.setEchoCharacter(char) As of JDK version 1.1, replaced bysetEchoChar(char)
.java.awt.Toolkit.getFontList() java.awt.Toolkit.getFontMetrics(Font) As of JDK version 1.2, replaced by theFont
methodgetLineMetrics
.java.awt.Toolkit.getMenuShortcutKeyMask() It is recommended that extended modifier keys andToolkit.getMenuShortcutKeyMaskEx()
be used insteadjava.awt.Window.applyResourceBundle(ResourceBundle) As of J2SE 1.4, replaced byComponent.applyComponentOrientation
.java.awt.Window.hide() As of JDK version 1.5, replaced byWindow.setVisible(boolean)
.java.awt.Window.postEvent(Event) As of JDK version 1.1 replaced bydispatchEvent(AWTEvent)
.java.awt.Window.reshape(int, int, int, int) As of JDK version 1.1, replaced bysetBounds(int, int, int, int)
.java.awt.Window.show() As of JDK version 1.5, replaced byWindow.setVisible(boolean)
.java.beans.Beans.instantiate(ClassLoader, String, BeanContext, AppletInitializer) It is recommended to useBeans.instantiate(ClassLoader, String, BeanContext)
, because the Applet API is deprecated. See the java.applet package documentation for further information.java.io.ByteArrayOutputStream.toString(int) This method does not properly convert bytes into characters. As of JDK 1.1, the preferred way to do this is via theByteArrayOutputStream.toString(String charsetName)
orByteArrayOutputStream.toString(Charset charset)
method, which takes an encoding-name or charset argument, or thetoString()
method, which uses the platform's default character encoding.java.io.DataInputStream.readLine() This method does not properly convert bytes to characters. As of JDK 1.1, the preferred way to read lines of text is via theBufferedReader.readLine()
method. Programs that use theDataInputStream
class to read lines can be converted to use theBufferedReader
class by replacing code of the form:DataInputStream d = new DataInputStream(in);
BufferedReader d = new BufferedReader(new InputStreamReader(in));
java.io.File.toURL() java.io.FileInputStream.finalize() Thefinalize
method has been deprecated and will be removed. Subclasses that overridefinalize
in order to perform cleanup should be modified to use alternative cleanup mechanisms and to remove the overridingfinalize
method. When overriding thefinalize
method, its implementation must explicitly ensure thatsuper.finalize()
is invoked as described inObject.finalize()
. See the specification forObject.finalize()
for further information about migration options.java.io.FileOutputStream.finalize() Thefinalize
method has been deprecated and will be removed. Subclasses that overridefinalize
in order to perform cleanup should be modified to use alternative cleanup mechanisms and to remove the overridingfinalize
method. When overriding thefinalize
method, its implementation must explicitly ensure thatsuper.finalize()
is invoked as described inObject.finalize()
. See the specification forObject.finalize()
for further information about migration options.java.io.ObjectInputStream.readLine() This method does not properly convert bytes to characters. see DataInputStream for the details and alternatives.java.io.ObjectOutputStream.PutField.write(ObjectOutput) This method does not write the values contained by thisPutField
object in a proper format, and may result in corruption of the serialization stream. The correct way to writePutField
data is by calling theObjectOutputStream.writeFields()
method.java.lang.Character.isJavaLetter(char) Replaced by isJavaIdentifierStart(char).java.lang.Character.isJavaLetterOrDigit(char) Replaced by isJavaIdentifierPart(char).java.lang.Character.isSpace(char) Replaced by isWhitespace(char).java.lang.Class.newInstance() This method propagates any exception thrown by the nullary constructor, including a checked exception. Use of this method effectively bypasses the compile-time exception checking that would otherwise be performed by the compiler. TheConstructor.newInstance
method avoids this problem by wrapping any exception thrown by the constructor in a (checked)InvocationTargetException
.The call
can be replaced byclazz.newInstance()
The latter sequence of calls is inferred to be able to throw the additional exception typesclazz.getDeclaredConstructor().newInstance()
InvocationTargetException
andNoSuchMethodException
. Both of these exception types are subclasses ofReflectiveOperationException
.java.lang.ClassLoader.defineClass(byte[], int, int) Replaced bydefineClass(String, byte[], int, int)
java.lang.ClassLoader.getPackage(String) If multiple class loaders delegate to each other and define classes with the same package name, and one such loader relies on the lookup behavior ofgetPackage
to return a软件包
from a parent loader, then the properties exposed by the软件包
may not be as expected in the rest of the program. For example, the软件包
will only expose annotations from thepackage-info.class
file defined by the parent loader, even if annotations exist in apackage-info.class
file defined by a child loader. A more robust approach is to use theClassLoader.getDefinedPackage(java.lang.String)
method which returns a软件包
for the specified class loader.java.lang.Object.finalize() The finalization mechanism is inherently problematic. Finalization can lead to performance issues, deadlocks, and hangs. Errors in finalizers can lead to resource leaks; there is no way to cancel finalization if it is no longer necessary; and no ordering is specified among calls tofinalize
methods of different objects. Furthermore, there are no guarantees regarding the timing of finalization. Thefinalize
method might be called on a finalizable object only after an indefinite delay, if at all. Classes whose instances hold non-heap resources should provide a method to enable explicit release of those resources, and they should also implementAutoCloseable
if appropriate. TheCleaner
andPhantomReference
provide more flexible and efficient ways to release resources when an object becomes unreachable.java.lang.Package.getPackage(String) If multiple class loaders delegate to each other and define classes with the same package name, and one such loader relies on the lookup behavior ofgetPackage
to return a软件包
from a parent loader, then the properties exposed by the软件包
may not be as expected in the rest of the program. For example, the软件包
will only expose annotations from thepackage-info.class
file defined by the parent loader, even if annotations exist in apackage-info.class
file defined by a child loader. A more robust approach is to use theClassLoader.getDefinedPackage(java.lang.String)
method which returns a软件包
for the specified class loader.java.lang.reflect.AccessibleObject.isAccessible() This method is deprecated because its name hints that it checks if the reflected object is accessible when it actually indicates if the checks for Java language access control are suppressed. This method may returnfalse
on a reflected object that is accessible to the caller. To test if this reflected object is accessible, it should useAccessibleObject.canAccess(Object)
.java.lang.reflect.Proxy.getProxyClass(ClassLoader, Class<?>...) Proxy classes generated in a named module are encapsulated and not accessible to code outside its module.Constructor.newInstance
will throwIllegalAccessException
when it is called on an inaccessible proxy class. UseProxy.newProxyInstance(ClassLoader, Class[], InvocationHandler)
to create a proxy instance instead.java.lang.Runtime.traceInstructions(boolean) This method was intended to control instruction tracing. It has been superseded by JVM-specific tracing mechanisms. This method is subject to removal in a future version of Java SE.java.lang.Runtime.traceMethodCalls(boolean) This method was intended to control method call tracing. It has been superseded by JVM-specific tracing mechanisms. This method is subject to removal in a future version of Java SE.java.lang.Runtime.Version.major() As of Java SE 10, the first element of a version number is not the major-release number but the feature-release counter, incremented for every time-based release. Use theRuntime.Version.feature()
method in preference to this method. For compatibility, this method returns the value of the feature element.java.lang.Runtime.Version.minor() As of Java SE 10, the second element of a version number is not the minor-release number but the interim-release counter, incremented for every interim release. Use theRuntime.Version.interim()
method in preference to this method. For compatibility, this method returns the value of the interim element, or zero if it is absent.java.lang.Runtime.Version.security() As of Java SE 10, the third element of a version number is not the security level but the update-release counter, incremented for every update release. Use theRuntime.Version.update()
method in preference to this method. For compatibility, this method returns the value of the update element, or zero if it is absent.java.lang.SecurityManager.checkMulticast(InetAddress, byte) Use #checkPermission(java.security.Permission) insteadjava.lang.String.getBytes(int, int, byte[], int) This method does not properly convert characters into bytes. As of JDK 1.1, the preferred way to do this is via theString.getBytes()
method, which uses the platform's default charset.java.lang.Thread.countStackFrames() The definition of this call depends onThread.suspend()
, which is deprecated. Further, the results of this call were never well-defined. This method is subject to removal in a future version of Java SE.java.lang.Thread.resume() This method exists solely for use withThread.suspend()
, which has been deprecated because it is deadlock-prone. For more information, see Why are Thread.stop, Thread.suspend and Thread.resume Deprecated?.java.lang.Thread.stop() This method is inherently unsafe. Stopping a thread with Thread.stop causes it to unlock all of the monitors that it has locked (as a natural consequence of the uncheckedThreadDeath
exception propagating up the stack). If any of the objects previously protected by these monitors were in an inconsistent state, the damaged objects become visible to other threads, potentially resulting in arbitrary behavior. Many uses ofstop
should be replaced by code that simply modifies some variable to indicate that the target thread should stop running. The target thread should check this variable regularly, and return from its run method in an orderly fashion if the variable indicates that it is to stop running. If the target thread waits for long periods (on a condition variable, for example), theinterrupt
method should be used to interrupt the wait. For more information, see Why are Thread.stop, Thread.suspend and Thread.resume Deprecated?.java.lang.Thread.suspend() This method has been deprecated, as it is inherently deadlock-prone. If the target thread holds a lock on the monitor protecting a critical system resource when it is suspended, no thread can access this resource until the target thread is resumed. If the thread that would resume the target thread attempts to lock this monitor prior to callingresume
, deadlock results. Such deadlocks typically manifest themselves as "frozen" processes. For more information, see Why are Thread.stop, Thread.suspend and Thread.resume Deprecated?.java.lang.ThreadGroup.allowThreadSuspension(boolean) The definition of this call depends onThreadGroup.suspend()
, which is deprecated. Further, the behavior of this call was never specified.java.lang.ThreadGroup.resume() This method is used solely in conjunction withThread.suspend
andThreadGroup.suspend
, both of which have been deprecated, as they are inherently deadlock-prone. SeeThread.suspend()
for details.java.lang.ThreadGroup.stop() This method is inherently unsafe. SeeThread.stop()
for details.java.lang.ThreadGroup.suspend() This method is inherently deadlock-prone. SeeThread.suspend()
for details.java.math.BigDecimal.divide(BigDecimal, int, int) The methodBigDecimal.divide(BigDecimal, int, RoundingMode)
should be used in preference to this legacy method.java.math.BigDecimal.setScale(int, int) The methodBigDecimal.setScale(int, RoundingMode)
should be used in preference to this legacy method.java.net.DatagramSocketImpl.getTTL() use getTimeToLive instead.java.net.DatagramSocketImpl.setTTL(byte) use setTimeToLive instead.java.net.MulticastSocket.getTTL() use the getTimeToLive method instead, which returns an int instead of a byte.java.net.MulticastSocket.send(DatagramPacket, byte) Use the following code or its equivalent instead: ...... int ttl = mcastSocket.getTimeToLive(); mcastSocket.setTimeToLive(newttl); mcastSocket.send(p); mcastSocket.setTimeToLive(ttl); ......java.net.MulticastSocket.setTTL(byte) use the setTimeToLive method instead, which uses int instead of byte as the type for ttl.java.net.URLConnection.getDefaultRequestProperty(String) The instance specific getRequestProperty method should be used after an appropriate instance of URLConnection is obtained.java.net.URLConnection.setDefaultRequestProperty(String, String) The instance specific setRequestProperty method should be used after an appropriate instance of URLConnection is obtained. Invoking this method will have no effect.java.net.URLDecoder.decode(String) The resulting string may vary depending on the platform's default encoding. Instead, use the decode(String,String) method to specify the encoding.java.net.URLEncoder.encode(String) The resulting string may vary depending on the platform's default encoding. Instead, use the encode(String,String) method to specify the encoding.java.net.URLStreamHandler.setURL(URL, String, String, int, String, String) Use setURL(URL, String, String, int, String, String, String, String);java.rmi.dgc.VMID.isUnique() java.rmi.registry.RegistryHandler.registryImpl(int) no replacement. As of the Java 2 platform v1.2, RMI no longer uses theRegistryHandler
to obtain the registry's implementation.java.rmi.registry.RegistryHandler.registryStub(String, int) no replacement. As of the Java 2 platform v1.2, RMI no longer uses theRegistryHandler
to obtain the registry's stub.java.rmi.server.LoaderHandler.getSecurityContext(ClassLoader) no replacementjava.rmi.server.LoaderHandler.loadClass(String) no replacementjava.rmi.server.LogStream.getDefaultStream() no replacementjava.rmi.server.LogStream.getOutputStream() no replacementjava.rmi.server.LogStream.log(String) no replacementjava.rmi.server.LogStream.parseLevel(String) no replacementjava.rmi.server.LogStream.setDefaultStream(PrintStream) no replacementjava.rmi.server.LogStream.setOutputStream(OutputStream) no replacementjava.rmi.server.LogStream.toString() no replacementjava.rmi.server.LogStream.write(int) no replacementjava.rmi.server.Operation.getOperation() no replacementjava.rmi.server.Operation.toString() no replacementjava.rmi.server.RemoteCall.done() no replacementjava.rmi.server.RemoteCall.executeCall() no replacementjava.rmi.server.RemoteCall.getInputStream() no replacementjava.rmi.server.RemoteCall.getOutputStream() no replacementjava.rmi.server.RemoteCall.getResultStream(boolean) no replacementjava.rmi.server.RemoteCall.releaseInputStream() no replacementjava.rmi.server.RemoteCall.releaseOutputStream() no replacementjava.rmi.server.RemoteRef.done(RemoteCall) 1.2 style stubs no longer use this method. Instead of using a sequence of method calls to the remote reference (newCall
,invoke
, anddone
), a stub uses a single method,invoke(Remote, Method, Object[], int)
, on the remote reference to carry out parameter marshalling, remote method executing and unmarshalling of the return value.java.rmi.server.RemoteRef.invoke(RemoteCall) 1.2 style stubs no longer use this method. Instead of using a sequence of method calls to the remote reference (newCall
,invoke
, anddone
), a stub uses a single method,invoke(Remote, Method, Object[], int)
, on the remote reference to carry out parameter marshalling, remote method executing and unmarshalling of the return value.java.rmi.server.RemoteRef.newCall(RemoteObject, Operation[], int, long) 1.2 style stubs no longer use this method. Instead of using a sequence of method calls on the stub's the remote reference (newCall
,invoke
, anddone
), a stub uses a single method,invoke(Remote, Method, Object[], int)
, on the remote reference to carry out parameter marshalling, remote method executing and unmarshalling of the return value.java.rmi.server.RemoteStub.setRef(RemoteStub, RemoteRef) No replacement. ThesetRef
method was intended for setting the remote reference of a remote stub. This is unnecessary, sinceRemoteStub
s can be created and initialized with a remote reference through use of theRemoteStub(RemoteRef)
constructor.java.rmi.server.RMIClassLoader.getSecurityContext(ClassLoader) no replacement. As of the Java 2 platform v1.2, RMI no longer uses this method to obtain a class loader's security context.java.rmi.server.RMIClassLoader.loadClass(String) replaced byloadClass(String,String)
methodjava.rmi.server.Skeleton.dispatch(Remote, RemoteCall, int, long) no replacementjava.rmi.server.Skeleton.getOperations() no replacementjava.rmi.server.UnicastRemoteObject.exportObject(Remote) This method is deprecated because it supports only static stubs. UseexportObject(Remote, port)
orexportObject(Remote, port, csf, ssf)
instead.java.security.Provider.getVersion() useProvider.getVersionStr()
instead.java.security.Security.getAlgorithmProperty(String, String) This method used to return the value of a proprietary property in the master file of the "SUN" Cryptographic Service Provider in order to determine how to parse algorithm-specific parameters. Use the new provider-based and algorithm-independentAlgorithmParameters
andKeyFactory
engine classes (introduced in the J2SE version 1.2 platform) instead.java.security.Signature.getParameter(String) java.security.Signature.setParameter(String, Object) UsesetParameter
.java.security.SignatureSpi.engineGetParameter(String) java.security.SignatureSpi.engineSetParameter(String, Object) Replaced byengineSetParameter
.java.sql.CallableStatement.getBigDecimal(int, int) usegetBigDecimal(int parameterIndex)
orgetBigDecimal(String parameterName)
java.sql.Date.getHours() java.sql.Date.getMinutes() java.sql.Date.getSeconds() java.sql.Date.setHours(int) java.sql.Date.setMinutes(int) java.sql.Date.setSeconds(int) java.sql.DriverManager.getLogStream() UsegetLogWriter
java.sql.DriverManager.setLogStream(PrintStream) UsesetLogWriter
java.sql.PreparedStatement.setUnicodeStream(int, InputStream, int) UsesetCharacterStream
java.sql.ResultSet.getBigDecimal(int, int) UsegetBigDecimal(int columnIndex)
orgetBigDecimal(String columnLabel)
java.sql.ResultSet.getUnicodeStream(int) usegetCharacterStream
in place ofgetUnicodeStream
java.sql.Time.getDate() java.sql.Time.getDay() java.sql.Time.getMonth() java.sql.Time.getYear() java.sql.Time.setDate(int) java.sql.Time.setMonth(int) java.sql.Time.setYear(int) java.util.concurrent.atomic.AtomicBoolean.weakCompareAndSet(boolean, boolean) This method has plain memory effects but the method name implies volatile memory effects (see methods such asAtomicBoolean.compareAndExchange(boolean, boolean)
andAtomicBoolean.compareAndSet(boolean, boolean)
). To avoid confusion over plain or volatile memory effects it is recommended that the methodAtomicBoolean.weakCompareAndSetPlain(boolean, boolean)
be used instead.java.util.concurrent.atomic.AtomicInteger.weakCompareAndSet(int, int) This method has plain memory effects but the method name implies volatile memory effects (see methods such asAtomicInteger.compareAndExchange(int, int)
andAtomicInteger.compareAndSet(int, int)
). To avoid confusion over plain or volatile memory effects it is recommended that the methodAtomicInteger.weakCompareAndSetPlain(int, int)
be used instead.java.util.concurrent.atomic.AtomicIntegerArray.weakCompareAndSet(int, int, int) This method has plain memory effects but the method name implies volatile memory effects (see methods such asAtomicIntegerArray.compareAndExchange(int, int, int)
andAtomicIntegerArray.compareAndSet(int, int, int)
). To avoid confusion over plain or volatile memory effects it is recommended that the methodAtomicIntegerArray.weakCompareAndSetPlain(int, int, int)
be used instead.java.util.concurrent.atomic.AtomicLong.weakCompareAndSet(long, long) This method has plain memory effects but the method name implies volatile memory effects (see methods such asAtomicLong.compareAndExchange(long, long)
andAtomicLong.compareAndSet(long, long)
). To avoid confusion over plain or volatile memory effects it is recommended that the methodAtomicLong.weakCompareAndSetPlain(long, long)
be used instead.java.util.concurrent.atomic.AtomicLongArray.weakCompareAndSet(int, long, long) This method has plain memory effects but the method name implies volatile memory effects (see methods such asAtomicLongArray.compareAndExchange(int, long, long)
andAtomicLongArray.compareAndSet(int, long, long)
). To avoid confusion over plain or volatile memory effects it is recommended that the methodAtomicLongArray.weakCompareAndSetPlain(int, long, long)
be used instead.java.util.concurrent.atomic.AtomicReference.weakCompareAndSet(V, V) This method has plain memory effects but the method name implies volatile memory effects (see methods such asAtomicReference.compareAndExchange(V, V)
andAtomicReference.compareAndSet(V, V)
). To avoid confusion over plain or volatile memory effects it is recommended that the methodAtomicReference.weakCompareAndSetPlain(V, V)
be used instead.java.util.concurrent.atomic.AtomicReferenceArray.weakCompareAndSet(int, E, E) This method has plain memory effects but the method name implies volatile memory effects (see methods such asAtomicReferenceArray.compareAndExchange(int, E, E)
andAtomicReferenceArray.compareAndSet(int, E, E)
). To avoid confusion over plain or volatile memory effects it is recommended that the methodAtomicReferenceArray.weakCompareAndSetPlain(int, E, E)
be used instead.java.util.concurrent.ThreadPoolExecutor.finalize() java.util.Date.getDate() As of JDK version 1.1, replaced byCalendar.get(Calendar.DAY_OF_MONTH)
.java.util.Date.getDay() As of JDK version 1.1, replaced byCalendar.get(Calendar.DAY_OF_WEEK)
.java.util.Date.getHours() As of JDK version 1.1, replaced byCalendar.get(Calendar.HOUR_OF_DAY)
.java.util.Date.getMinutes() As of JDK version 1.1, replaced byCalendar.get(Calendar.MINUTE)
.java.util.Date.getMonth() As of JDK version 1.1, replaced byCalendar.get(Calendar.MONTH)
.java.util.Date.getSeconds() As of JDK version 1.1, replaced byCalendar.get(Calendar.SECOND)
.java.util.Date.getTimezoneOffset() As of JDK version 1.1, replaced by-(Calendar.get(Calendar.ZONE_OFFSET) + Calendar.get(Calendar.DST_OFFSET)) / (60 * 1000)
.java.util.Date.getYear() As of JDK version 1.1, replaced byCalendar.get(Calendar.YEAR) - 1900
.java.util.Date.parse(String) As of JDK version 1.1, replaced byDateFormat.parse(String s)
.java.util.Date.setDate(int) As of JDK version 1.1, replaced byCalendar.set(Calendar.DAY_OF_MONTH, int date)
.java.util.Date.setHours(int) As of JDK version 1.1, replaced byCalendar.set(Calendar.HOUR_OF_DAY, int hours)
.java.util.Date.setMinutes(int) As of JDK version 1.1, replaced byCalendar.set(Calendar.MINUTE, int minutes)
.java.util.Date.setMonth(int) As of JDK version 1.1, replaced byCalendar.set(Calendar.MONTH, int month)
.java.util.Date.setSeconds(int) As of JDK version 1.1, replaced byCalendar.set(Calendar.SECOND, int seconds)
.java.util.Date.setYear(int) As of JDK version 1.1, replaced byCalendar.set(Calendar.YEAR, year + 1900)
.java.util.Date.toGMTString() As of JDK version 1.1, replaced byDateFormat.format(Date date)
, using a GMTTimeZone
.java.util.Date.toLocaleString() As of JDK version 1.1, replaced byDateFormat.format(Date date)
.java.util.Date.UTC(int, int, int, int, int, int) As of JDK version 1.1, replaced byCalendar.set(year + 1900, month, date, hrs, min, sec)
orGregorianCalendar(year + 1900, month, date, hrs, min, sec)
, using a UTCTimeZone
, followed byCalendar.getTime().getTime()
.java.util.logging.Logger.logrb(Level, String, String, String, String) java.util.logging.LogManager.getLoggingMXBean() java.util.logging.LoggingMXBean
is deprecated and replaced withjava.lang.management.PlatformLoggingMXBean
. UseManagementFactory.getPlatformMXBean
(PlatformLoggingMXBean.class) instead.java.util.logging.LogRecord.setMillis(long) LogRecord maintains timestamps with nanosecond resolution, usingInstant
values. For this reason,setInstant()
should be used in preference tosetMillis()
.java.util.Properties.save(OutputStream, String) This method does not throw an IOException if an I/O error occurs while saving the property list. The preferred way to save a properties list is via thestore(OutputStream out, String comments)
method or thestoreToXML(OutputStream os, String comment)
method.java.util.zip.Deflater.finalize() Thefinalize
method has been deprecated and will be removed. It is implemented as a no-op. Subclasses that overridefinalize
in order to perform cleanup should be modified to use alternative cleanup mechanisms and to remove the overridingfinalize
method. The recommended cleanup for compressor is to explicitly callend
method when it is no longer in use. If theend
is not invoked explicitly the resource of the compressor will be released when the instance becomes unreachable.java.util.zip.Inflater.finalize() Thefinalize
method has been deprecated and will be removed. It is implemented as a no-op. Subclasses that overridefinalize
in order to perform cleanup should be modified to use alternative cleanup mechanisms and remove the overridingfinalize
method. The recommended cleanup for compressor is to explicitly callend
method when it is no longer in use. If theend
is not invoked explicitly the resource of the compressor will be released when the instance becomes unreachable,java.util.zip.ZipFile.finalize() Thefinalize
method has been deprecated and will be removed. It is implemented as a no-op. Subclasses that overridefinalize
in order to perform cleanup should be modified to use alternative cleanup mechanisms and to remove the overridingfinalize
method. The recommended cleanup for ZipFile object is to explicitly invokeclose
method when it is no longer in use, or use try-with-resources. If theclose
is not invoked explicitly the resources held by this object will be released when the instance becomes unreachable.javax.imageio.spi.ServiceRegistry.finalize() Thefinalize
method has been deprecated. Subclasses that overridefinalize
in order to perform cleanup should be modified to use alternative cleanup mechanisms and to remove the overridingfinalize
method. When overriding thefinalize
method, its implementation must explicitly ensure thatsuper.finalize()
is invoked as described inObject.finalize()
. See the specification forObject.finalize()
for further information about migration options.javax.imageio.stream.FileCacheImageInputStream.finalize() Thefinalize
method has been deprecated. Subclasses that overridefinalize
in order to perform cleanup should be modified to use alternative cleanup mechanisms and to remove the overridingfinalize
method. When overriding thefinalize
method, its implementation must explicitly ensure thatsuper.finalize()
is invoked as described inObject.finalize()
. See the specification forObject.finalize()
for further information about migration options.javax.imageio.stream.FileImageInputStream.finalize() Thefinalize
method has been deprecated. Subclasses that overridefinalize
in order to perform cleanup should be modified to use alternative cleanup mechanisms and to remove the overridingfinalize
method. When overriding thefinalize
method, its implementation must explicitly ensure thatsuper.finalize()
is invoked as described inObject.finalize()
. See the specification forObject.finalize()
for further information about migration options.javax.imageio.stream.FileImageOutputStream.finalize() Thefinalize
method has been deprecated. Subclasses that overridefinalize
in order to perform cleanup should be modified to use alternative cleanup mechanisms and to remove the overridingfinalize
method. When overriding thefinalize
method, its implementation must explicitly ensure thatsuper.finalize()
is invoked as described inObject.finalize()
. See the specification forObject.finalize()
for further information about migration options.javax.imageio.stream.ImageInputStreamImpl.finalize() Thefinalize
method has been deprecated. Subclasses that overridefinalize
in order to perform cleanup should be modified to use alternative cleanup mechanisms and to remove the overridingfinalize
method. When overriding thefinalize
method, its implementation must explicitly ensure thatsuper.finalize()
is invoked as described inObject.finalize()
. See the specification forObject.finalize()
for further information about migration options.javax.imageio.stream.MemoryCacheImageInputStream.finalize() Thefinalize
method has been deprecated. Subclasses that overridefinalize
in order to perform cleanup should be modified to use alternative cleanup mechanisms and to remove the overridingfinalize
method. When overriding thefinalize
method, its implementation must explicitly ensure thatsuper.finalize()
is invoked as described inObject.finalize()
. See the specification forObject.finalize()
for further information about migration options.javax.management.AttributeValueExp.setMBeanServer(MBeanServer) This method has no effect. The MBean Server used to obtain an attribute value isQueryEval.getMBeanServer()
.javax.management.MBeanServer.deserialize(ObjectName, byte[]) UsegetClassLoaderFor
to obtain the appropriate class loader for deserialization.javax.management.monitor.CounterMonitor.getDerivedGauge() As of JMX 1.2, replaced byCounterMonitor.getDerivedGauge(ObjectName)
javax.management.monitor.CounterMonitor.getDerivedGaugeTimeStamp() As of JMX 1.2, replaced byCounterMonitor.getDerivedGaugeTimeStamp(ObjectName)
javax.management.monitor.CounterMonitor.getThreshold() As of JMX 1.2, replaced byCounterMonitor.getThreshold(ObjectName)
javax.management.monitor.CounterMonitor.setThreshold(Number) As of JMX 1.2, replaced byCounterMonitor.setInitThreshold(java.lang.Number)
javax.management.monitor.CounterMonitorMBean.getDerivedGauge() As of JMX 1.2, replaced byCounterMonitorMBean.getDerivedGauge(ObjectName)
javax.management.monitor.CounterMonitorMBean.getDerivedGaugeTimeStamp() As of JMX 1.2, replaced byCounterMonitorMBean.getDerivedGaugeTimeStamp(ObjectName)
javax.management.monitor.CounterMonitorMBean.getThreshold() As of JMX 1.2, replaced byCounterMonitorMBean.getThreshold(ObjectName)
javax.management.monitor.CounterMonitorMBean.setThreshold(Number) As of JMX 1.2, replaced byCounterMonitorMBean.setInitThreshold(java.lang.Number)
javax.management.monitor.GaugeMonitor.getDerivedGauge() As of JMX 1.2, replaced byGaugeMonitor.getDerivedGauge(ObjectName)
javax.management.monitor.GaugeMonitor.getDerivedGaugeTimeStamp() As of JMX 1.2, replaced byGaugeMonitor.getDerivedGaugeTimeStamp(ObjectName)
javax.management.monitor.GaugeMonitorMBean.getDerivedGauge() As of JMX 1.2, replaced byGaugeMonitorMBean.getDerivedGauge(ObjectName)
javax.management.monitor.GaugeMonitorMBean.getDerivedGaugeTimeStamp() As of JMX 1.2, replaced byGaugeMonitorMBean.getDerivedGaugeTimeStamp(ObjectName)
javax.management.monitor.Monitor.getObservedObject() As of JMX 1.2, replaced byMonitor.getObservedObjects()
javax.management.monitor.Monitor.setObservedObject(ObjectName) As of JMX 1.2, replaced byMonitor.addObservedObject(javax.management.ObjectName)
javax.management.monitor.MonitorMBean.getObservedObject() As of JMX 1.2, replaced byMonitorMBean.getObservedObjects()
javax.management.monitor.MonitorMBean.setObservedObject(ObjectName) As of JMX 1.2, replaced byMonitorMBean.addObservedObject(javax.management.ObjectName)
javax.management.monitor.StringMonitor.getDerivedGauge() As of JMX 1.2, replaced byStringMonitor.getDerivedGauge(ObjectName)
javax.management.monitor.StringMonitor.getDerivedGaugeTimeStamp() As of JMX 1.2, replaced byStringMonitor.getDerivedGaugeTimeStamp(ObjectName)
javax.management.monitor.StringMonitorMBean.getDerivedGauge() As of JMX 1.2, replaced byStringMonitorMBean.getDerivedGauge(ObjectName)
javax.management.monitor.StringMonitorMBean.getDerivedGaugeTimeStamp() As of JMX 1.2, replaced byStringMonitorMBean.getDerivedGaugeTimeStamp(ObjectName)
javax.management.StringValueExp.setMBeanServer(MBeanServer) javax.management.ValueExp.setMBeanServer(MBeanServer) This method is not needed because aValueExp
can access the MBean server in which it is being evaluated by usingQueryEval.getMBeanServer()
.javax.net.ssl.HandshakeCompletedEvent.getPeerCertificateChain() TheHandshakeCompletedEvent.getPeerCertificates()
method that returns an array ofjava.security.cert.Certificate
should be used instead.javax.net.ssl.SSLSession.getPeerCertificateChain() TheSSLSession.getPeerCertificates()
method that returns an array ofjava.security.cert.Certificate
should be used instead.javax.sql.rowset.BaseRowSet.setUnicodeStream(int, InputStream, int) getCharacterStream should be used in its placejavax.swing.AbstractButton.getLabel() - Replaced bygetText
javax.swing.AbstractButton.setLabel(String) - Replaced bysetText(text)
javax.swing.FocusManager.disableSwingFocusManager() as of 1.4, replaced byKeyboardFocusManager.setDefaultFocusTraversalPolicy(FocusTraversalPolicy)
javax.swing.FocusManager.isFocusManagerEnabled() As of 1.4, replaced byKeyboardFocusManager.getDefaultFocusTraversalPolicy()
javax.swing.InputVerifier.shouldYieldFocus(JComponent) javax.swing.JComponent.disable() As of JDK version 1.1, replaced byjava.awt.Component.setEnabled(boolean)
.javax.swing.JComponent.enable() As of JDK version 1.1, replaced byjava.awt.Component.setEnabled(boolean)
.javax.swing.JComponent.getNextFocusableComponent() As of 1.4, replaced byFocusTraversalPolicy
.javax.swing.JComponent.hide() javax.swing.JComponent.isManagingFocus() As of 1.4, replaced byComponent.setFocusTraversalKeys(int, Set)
andContainer.setFocusCycleRoot(boolean)
.javax.swing.JComponent.requestDefaultFocus() As of 1.4, replaced byFocusTraversalPolicy.getDefaultComponent(Container).requestFocus()
javax.swing.JComponent.reshape(int, int, int, int) As of JDK 5, replaced byComponent.setBounds(int, int, int, int)
.Moves and resizes this component.
javax.swing.JComponent.setNextFocusableComponent(Component) As of 1.4, replaced byFocusTraversalPolicy
javax.swing.JInternalFrame.getMenuBar() As of Swing version 1.0.3, replaced bygetJMenuBar()
.javax.swing.JInternalFrame.setMenuBar(JMenuBar) As of Swing version 1.0.3 replaced bysetJMenuBar(JMenuBar m)
.javax.swing.JList.getSelectedValues() As of JDK 1.7, replaced byJList.getSelectedValuesList()
javax.swing.JMenuBar.getComponentAtIndex(int) replaced bygetComponent(int i)
javax.swing.JPasswordField.getText() As of Java 2 platform v1.2, replaced bygetPassword
.javax.swing.JPopupMenu.getComponentAtIndex(int) replaced byContainer.getComponent(int)
javax.swing.JRootPane.getMenuBar() As of Swing version 1.0.3 replaced bygetJMenuBar()
.javax.swing.JRootPane.setMenuBar(JMenuBar) As of Swing version 1.0.3 replaced bysetJMenuBar(JMenuBar menu)
.javax.swing.JTable.createScrollPaneForTable(JTable) As of Swing version 1.0.2, replaced bynew JScrollPane(aTable)
.javax.swing.JTable.sizeColumnsToFit(boolean) As of Swing version 1.0.3, replaced bydoLayout()
.javax.swing.JViewport.isBackingStoreEnabled() As of Java 2 platform v1.3, replaced bygetScrollMode()
.javax.swing.JViewport.setBackingStoreEnabled(boolean) As of Java 2 platform v1.3, replaced bysetScrollMode()
.javax.swing.KeyStroke.getKeyStroke(char, boolean) use getKeyStroke(char)javax.swing.plaf.basic.BasicSplitPaneUI.createKeyboardDownRightListener() As of Java 2 platform v1.3.javax.swing.plaf.basic.BasicSplitPaneUI.createKeyboardEndListener() As of Java 2 platform v1.3.javax.swing.plaf.basic.BasicSplitPaneUI.createKeyboardHomeListener() As of Java 2 platform v1.3.javax.swing.plaf.basic.BasicSplitPaneUI.createKeyboardResizeToggleListener() As of Java 2 platform v1.3.javax.swing.plaf.basic.BasicSplitPaneUI.createKeyboardUpLeftListener() As of Java 2 platform v1.3.javax.swing.plaf.basic.BasicSplitPaneUI.getDividerBorderSize() As of Java 2 platform v1.3, instead set the border on the divider.javax.swing.plaf.basic.BasicTextUI.modelToView(JTextComponent, int) javax.swing.plaf.basic.BasicTextUI.viewToModel(JTextComponent, Point) javax.swing.plaf.metal.MetalComboBoxUI.editablePropertyChanged(PropertyChangeEvent) As of Java 2 platform v1.4.javax.swing.plaf.metal.MetalComboBoxUI.removeListeners() As of Java 2 platform v1.4.javax.swing.plaf.metal.MetalScrollPaneUI.uninstallListeners(JScrollPane) - Replaced byBasicScrollPaneUI.uninstallListeners(JComponent)
javax.swing.plaf.multi.MultiTextUI.modelToView(JTextComponent, int) javax.swing.plaf.multi.MultiTextUI.viewToModel(JTextComponent, Point) javax.swing.plaf.TextUI.getToolTipText(JTextComponent, Point) replaced byTextUI.getToolTipText2D(JTextComponent, Point2D)
javax.swing.plaf.TextUI.modelToView(JTextComponent, int) javax.swing.plaf.TextUI.viewToModel(JTextComponent, Point) javax.swing.RepaintManager.addDirtyRegion(Applet, int, int, int, int) The Applet API is deprecated. See the java.applet package documentation for further information.javax.swing.ScrollPaneLayout.getViewportBorderBounds(JScrollPane) As of JDK version Swing1.1 replaced byJScrollPane.getViewportBorderBounds()
.javax.swing.SwingUtilities.findFocusOwner(Component) As of 1.4, replaced byKeyboardFocusManager.getFocusOwner()
.javax.swing.table.TableColumn.disableResizedPosting() as of Java 2 platform v1.3javax.swing.table.TableColumn.enableResizedPosting() as of Java 2 platform v1.3javax.swing.text.html.HTMLEditorKit.InsertHTMLTextAction.insertAtBoundry(JEditorPane, HTMLDocument, int, Element, String, HTML.Tag, HTML.Tag) As of Java 2 platform v1.3, use insertAtBoundaryjavax.swing.text.JTextComponent.modelToView(int) replaced byJTextComponent.modelToView2D(int)
javax.swing.text.JTextComponent.viewToModel(Point) replaced byJTextComponent.viewToModel2D(Point2D)
javax.swing.text.LabelView.getFontMetrics() FontMetrics are not used for glyph rendering when running in the JDK.javax.swing.text.PasswordView.drawEchoCharacter(Graphics, int, int, char) javax.swing.text.PasswordView.drawSelectedText(Graphics, int, int, int, int) javax.swing.text.PasswordView.drawUnselectedText(Graphics, int, int, int, int) javax.swing.text.PlainView.drawLine(int, Graphics, int, int) javax.swing.text.PlainView.drawSelectedText(Graphics, int, int, int, int) javax.swing.text.PlainView.drawUnselectedText(Graphics, int, int, int, int) javax.swing.text.TableView.createTableCell(Element) Table cells can now be any arbitrary View implementation and should be produced by the ViewFactory rather than the table.javax.swing.text.Utilities.drawTabbedText(Segment, int, int, Graphics, TabExpander, int) javax.swing.text.Utilities.getBreakLocation(Segment, FontMetrics, int, int, TabExpander, int) javax.swing.text.Utilities.getPositionAbove(JTextComponent, int, int) javax.swing.text.Utilities.getPositionBelow(JTextComponent, int, int) javax.swing.text.Utilities.getTabbedTextOffset(Segment, FontMetrics, int, int, TabExpander, int) javax.swing.text.Utilities.getTabbedTextWidth(Segment, FontMetrics, int, TabExpander, int) javax.swing.text.View.modelToView(int, Shape) javax.swing.text.View.viewToModel(float, float, Shape) javax.swing.text.WrappedPlainView.drawLine(int, int, Graphics, int, int) javax.swing.text.WrappedPlainView.drawSelectedText(Graphics, int, int, int, int) javax.swing.text.WrappedPlainView.drawUnselectedText(Graphics, int, int, int, int) javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange(Vector<?>, TreePath) As of JDK version 1.7javax.tools.ToolProvider.getSystemToolClassLoader() This method is subject to removal in a future version of Java SE. Use thesystem tool provider
orservice loader
mechanisms to locate system tools as well as user-installed tools.javax.xml.stream.XMLEventFactory.newInstance(String, ClassLoader) This method has been deprecated to maintain API consistency. All newInstance methods have been replaced with corresponding newFactory methods. The replacementXMLEventFactory.newFactory(java.lang.String, java.lang.ClassLoader)
method defines no changes in behavior.javax.xml.stream.XMLInputFactory.newInstance(String, ClassLoader) This method has been deprecated to maintain API consistency. All newInstance methods have been replaced with corresponding newFactory methods. The replacementXMLInputFactory.newFactory(java.lang.String, java.lang.ClassLoader)
method defines no changes in behavior.javax.xml.stream.XMLOutputFactory.newInstance(String, ClassLoader) This method has been deprecated because it returns an instance of XMLInputFactory, which is of the wrong class. Use the new methodXMLOutputFactory.newFactory(java.lang.String, java.lang.ClassLoader)
instead.jdk.nashorn.api.scripting.AbstractJSObject.getDefaultValue(JSObject, Class<?>) useJSObject.getDefaultValue(Class)
instead.jdk.nashorn.api.scripting.AbstractJSObject.toNumber() useJSObject.getDefaultValue(Class)
withNumber
hint instead.jdk.nashorn.api.scripting.JSObject.toNumber() useJSObject.getDefaultValue(Class)
withNumber
hint instead.jdk.nashorn.api.scripting.ScriptObjectMirror.toNumber() netscape.javascript.JSObject.getWindow(Applet) The Applet API is deprecated. See the java.applet package documentation for further information.org.ietf.jgss.GSSContext.acceptSecContext(InputStream, OutputStream) The stream-based methods have been removed from RFC 8353. UseGSSContext.acceptSecContext(byte[], int, int)
instead.org.ietf.jgss.GSSContext.getMIC(InputStream, OutputStream, MessageProp) The stream-based methods have been removed from RFC 8353. UseGSSContext.getMIC(byte[], int, int, MessageProp)
instead.org.ietf.jgss.GSSContext.initSecContext(InputStream, OutputStream) The stream-based methods have been removed from RFC 8353. UseGSSContext.initSecContext(byte[], int, int)
instead.org.ietf.jgss.GSSContext.unwrap(InputStream, OutputStream, MessageProp) The stream-based methods have been removed from RFC 8353. UseGSSContext.unwrap(byte[], int, int, MessageProp)
instead.org.ietf.jgss.GSSContext.verifyMIC(InputStream, InputStream, MessageProp) The stream-based methods have been removed from RFC 8353. UseGSSContext.verifyMIC(byte[], int, int, byte[], int, int, MessageProp)
instead.org.ietf.jgss.GSSContext.wrap(InputStream, OutputStream, MessageProp) The stream-based methods have been removed from RFC 8353. UseGSSContext.wrap(byte[], int, int, MessageProp)
instead.
-
构造方法 构造器 描述 java.awt.AWTEvent(Event) It is recommended thatAWTEvent(Object, int)
be used insteadjava.awt.event.KeyEvent(Component, int, long, int, int) as of JDK1.1; useKeyEvent(Component, int, long, int, int, char)
insteadjava.io.StreamTokenizer(InputStream) As of JDK version 1.1, the preferred way to tokenize an input stream is to convert it into a character stream, for example:Reader r = new BufferedReader(new InputStreamReader(is)); StreamTokenizer st = new StreamTokenizer(r);
java.lang.Boolean(boolean) It is rarely appropriate to use this constructor. The static factoryBoolean.valueOf(boolean)
is generally a better choice, as it is likely to yield significantly better space and time performance. Also consider using the final fieldsBoolean.TRUE
andBoolean.FALSE
if possible.java.lang.Byte(byte) It is rarely appropriate to use this constructor. The static factoryByte.valueOf(byte)
is generally a better choice, as it is likely to yield significantly better space and time performance.java.lang.Character(char) It is rarely appropriate to use this constructor. The static factoryCharacter.valueOf(char)
is generally a better choice, as it is likely to yield significantly better space and time performance.java.lang.Double(double) It is rarely appropriate to use this constructor. The static factoryDouble.valueOf(double)
is generally a better choice, as it is likely to yield significantly better space and time performance.java.lang.Float(float) It is rarely appropriate to use this constructor. The static factoryFloat.valueOf(float)
is generally a better choice, as it is likely to yield significantly better space and time performance.java.lang.Integer(int) It is rarely appropriate to use this constructor. The static factoryInteger.valueOf(int)
is generally a better choice, as it is likely to yield significantly better space and time performance.java.lang.Long(long) It is rarely appropriate to use this constructor. The static factoryLong.valueOf(long)
is generally a better choice, as it is likely to yield significantly better space and time performance.java.lang.Short(short) It is rarely appropriate to use this constructor. The static factoryShort.valueOf(short)
is generally a better choice, as it is likely to yield significantly better space and time performance.java.lang.String(byte[], int, int, int) This method does not properly convert bytes into characters. As of JDK 1.1, the preferred way to do this is via theString
constructors that take aCharset
, charset name, or that use the platform's default charset.java.net.Socket(String, int, boolean) Use DatagramSocket instead for UDP transport.java.rmi.RMISecurityException(String) no replacementjava.rmi.server.Operation(String) no replacementjava.rmi.server.SkeletonMismatchException(String) no replacementjava.rmi.ServerRuntimeException(String, Exception) no replacementjava.security.AuthProvider(String, double, String) useAuthProvider(String, String, String)
instead.java.security.Provider(String, double, String) useProvider(String, String, String)
instead.java.sql.Date(int, int, int) instead use the constructorDate(long date)
java.sql.Time(int, int, int) Use the constructor that takes a milliseconds value in place of this constructorjava.sql.Timestamp(int, int, int, int, int, int, int) instead use the constructorTimestamp(long millis)
java.util.Date(int, int, int) As of JDK version 1.1, replaced byCalendar.set(year + 1900, month, date)
orGregorianCalendar(year + 1900, month, date)
.javax.lang.model.util.AbstractAnnotationValueVisitor6() Release 6 is obsolete; update to a visitor for a newer release level.javax.lang.model.util.AbstractElementVisitor6() Release 6 is obsolete; update to a visitor for a newer release level.javax.lang.model.util.AbstractTypeVisitor6() Release 6 is obsolete; update to a visitor for a newer release level.javax.lang.model.util.ElementKindVisitor6() Release 6 is obsolete; update to a visitor for a newer release level.javax.lang.model.util.ElementScanner6() Release 6 is obsolete; update to a visitor for a newer release level.javax.lang.model.util.SimpleAnnotationValueVisitor6() Release 6 is obsolete; update to a visitor for a newer release level.javax.lang.model.util.SimpleElementVisitor6() Release 6 is obsolete; update to a visitor for a newer release level.javax.lang.model.util.SimpleTypeVisitor6() Release 6 is obsolete; update to a visitor for a newer release level.javax.lang.model.util.TypeKindVisitor6() Release 6 is obsolete; update to a visitor for a newer release level.javax.management.AttributeValueExp() An instance created with this constructor cannot be used in a query.
-
Enum Constants Enum Constant 描述 com.sun.security.jgss.InquireType.KRB5_GET_SESSION_KEY as of 9, replaced byInquireType.KRB5_GET_SESSION_KEY_EX
which returns an instance ofEncryptionKey
that implements theSecretKey
interface and has similar methods withKerberosKey
.