Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
7d7b8bb3
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
3
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_jdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
7d7b8bb3
编写于
1月 10, 2012
作者:
D
darcy
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
7112008: Javadoc for j.l.Object.finalize() vs JLS 12.6 Finalization of Class Instances
Reviewed-by: mduigou
上级
b5a6a100
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
17 addition
and
15 deletion
+17
-15
src/share/classes/java/lang/Object.java
src/share/classes/java/lang/Object.java
+17
-15
未找到文件。
src/share/classes/java/lang/Object.java
浏览文件 @
7d7b8bb3
...
...
@@ -58,8 +58,7 @@ public class Object {
*
* @return The {@code Class} object that represents the runtime
* class of this object.
* @see Class Literals, section 15.8.2 of
* <cite>The Java™ Language Specification</cite>.
* @jls 15.8.2 Class Literals
*/
public
final
native
Class
<?>
getClass
();
...
...
@@ -92,7 +91,7 @@ public class Object {
* objects. (This is typically implemented by converting the internal
* address of the object into an integer, but this implementation
* technique is not required by the
* Java
<font size="-2"><sup>TM</sup></font>
programming language.)
* Java
™
programming language.)
*
* @return a hash code value for this object.
* @see java.lang.Object#equals(java.lang.Object)
...
...
@@ -203,7 +202,7 @@ public class Object {
* exception at run time.
*
* @return a clone of this instance.
* @
exception
CloneNotSupportedException if the object's class does not
* @
throws
CloneNotSupportedException if the object's class does not
* support the {@code Cloneable} interface. Subclasses
* that override the {@code clone} method can also
* throw this exception to indicate that an instance cannot
...
...
@@ -264,7 +263,7 @@ public class Object {
* <p>
* Only one thread at a time can own an object's monitor.
*
* @
exception
IllegalMonitorStateException if the current thread is not
* @
throws
IllegalMonitorStateException if the current thread is not
* the owner of this object's monitor.
* @see java.lang.Object#notifyAll()
* @see java.lang.Object#wait()
...
...
@@ -288,7 +287,7 @@ public class Object {
* description of the ways in which a thread can become the owner of
* a monitor.
*
* @
exception
IllegalMonitorStateException if the current thread is not
* @
throws
IllegalMonitorStateException if the current thread is not
* the owner of this object's monitor.
* @see java.lang.Object#notify()
* @see java.lang.Object#wait()
...
...
@@ -368,11 +367,11 @@ public class Object {
* a monitor.
*
* @param timeout the maximum time to wait in milliseconds.
* @
exception
IllegalArgumentException if the value of timeout is
* @
throws
IllegalArgumentException if the value of timeout is
* negative.
* @
exception
IllegalMonitorStateException if the current thread is not
* @
throws
IllegalMonitorStateException if the current thread is not
* the owner of the object's monitor.
* @
exception
InterruptedException if any thread interrupted the
* @
throws
InterruptedException if any thread interrupted the
* current thread before or while the current thread
* was waiting for a notification. The <i>interrupted
* status</i> of the current thread is cleared when
...
...
@@ -433,12 +432,12 @@ public class Object {
* @param timeout the maximum time to wait in milliseconds.
* @param nanos additional time, in nanoseconds range
* 0-999999.
* @
exception
IllegalArgumentException if the value of timeout is
* @
throws
IllegalArgumentException if the value of timeout is
* negative or the value of nanos is
* not in the range 0-999999.
* @
exception
IllegalMonitorStateException if the current thread is not
* @
throws
IllegalMonitorStateException if the current thread is not
* the owner of this object's monitor.
* @
exception
InterruptedException if any thread interrupted the
* @
throws
InterruptedException if any thread interrupted the
* current thread before or while the current thread
* was waiting for a notification. The <i>interrupted
* status</i> of the current thread is cleared when
...
...
@@ -489,9 +488,9 @@ public class Object {
* description of the ways in which a thread can become the owner of
* a monitor.
*
* @
exception
IllegalMonitorStateException if the current thread is not
* @
throws
IllegalMonitorStateException if the current thread is not
* the owner of the object's monitor.
* @
exception
InterruptedException if any thread interrupted the
* @
throws
InterruptedException if any thread interrupted the
* current thread before or while the current thread
* was waiting for a notification. The <i>interrupted
* status</i> of the current thread is cleared when
...
...
@@ -510,7 +509,7 @@ public class Object {
* system resources or to perform other cleanup.
* <p>
* The general contract of {@code finalize} is that it is invoked
* if and when the Java
<font size="-2"><sup>TM</sup></font>
virtual
* if and when the Java
™
virtual
* machine has determined that there is no longer any
* means by which this object can be accessed by any thread that has
* not yet died, except as a result of an action taken by the
...
...
@@ -549,6 +548,9 @@ public class Object {
* ignored.
*
* @throws Throwable the {@code Exception} raised by this method
* @see java.lang.ref.WeakReference
* @see java.lang.ref.PhantomReference
* @jls 12.6 Finalization of Class Instances
*/
protected
void
finalize
()
throws
Throwable
{
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录