JDK 8 code review request for 7112008 Javadoc for j.l.Object.finalize() vs JLS 12.6 Finalization of Class Instances (original) (raw)

Joe Darcy joe.darcy at oracle.com
Tue Jan 10 21:10:24 UTC 2012


Hello,

Please review this small doc cleanup of java.lang.Object:

 7112008 Javadoc for j.l.Object.finalize() vs JLS 12.6 Finalization 

of Class Instances http://cr.openjdk.java.net/~darcy/7112008.0/

Full patch below inline.

Thanks,

-Joe

--- old/src/share/classes/java/lang/Object.java 2012-01-10 13:04:42.000000000 -0800 +++ new/src/share/classes/java/lang/Object.java 2012-01-10 13:04:42.000000000 -0800 @@ -58,8 +58,7 @@ * * @return The {@code Class} object that represents the runtime * class of this object.

@@ -92,7 +91,7 @@ * 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

@@ -203,7 +202,7 @@ * exception at run time. * * @return a clone of this instance.

does not

cannot @@ -264,7 +263,7 @@ *

* Only one thread at a time can own an object's monitor. *

is not

@@ -288,7 +287,7 @@ * description of the ways in which a thread can become the owner of * a monitor. *

is not

@@ -368,11 +367,11 @@ * a monitor. * * @param timeout the maximum time to wait in milliseconds.

is not

@@ -433,12 +432,12 @@ * @param timeout the maximum time to wait in milliseconds. * @param nanos additional time, in nanoseconds range * 0-999999.

is not

@@ -489,9 +488,9 @@ * description of the ways in which a thread can become the owner of * a monitor. *

is not

@@ -510,7 +509,7 @@ * system resources or to perform other cleanup. *

* The general contract of {@code finalize} is that it is invoked

@@ -549,6 +548,9 @@ * ignored. * * @throws Throwable the {@code Exception} raised by this method



More information about the core-libs-dev mailing list