hg: jdk7/tl/jdk: 2 new changesets
Mandy.Chung at Sun.COM
Tue Sep 22 23:47:15 UTC 2009
Rob Leland wrote:
> Three questions.
> -import java.util.logging.Logger;
> +import sun.util.logging.PlatformLogger;
> It seems counter intuitive that a dependency would be change
> from a java.* -> sun.* since this the OpenJDK ,why not add it to
> java.util.log.* ?
Alan answered this question (thanks Alan).
sun.util.logging.PlatformLogger is a private unsupported API added for
internal JDK implementation use.
> Then the JavaDocs says :
> This enables the runtime components to eliminate the
> static dependency of the logging facility ....
> In addition, the PlatformLogger API can be used if the logging
> module does not exist.
> What use case required this ?
> Then is this meant to be similar to Apache commons-logging which also
> has a basic logging functionality ?
No. PlatformLogger is not designed to provide basic logging
functionality but instead as a proxy to avoid direct dependency on
java.util.logging for internal use.
I guess the last sentence caused the confusion.
> On 9/18/2009 9:51 PM, mandy.chung at sun.com wrote:
>> Changeset: d3281fa8e46c
>> Author: mchung
>> Date: 2009-09-17 14:24 -0700
>> URL: http://hg.openjdk.java.net/jdk7/tl/jdk/rev/d3281fa8e46c
>> 6882376: Add internal support for JRE implementation to eliminate the dependency on logging
>> Summary: Added sun.util.logging.PlatformLogger for JRE implementation to log messages.
>> Reviewed-by: alanb, naoto
>> ! make/java/logging/Makefile
>> ! src/share/classes/java/util/Currency.java
>> ! src/share/classes/java/util/jar/Attributes.java
>> ! src/share/classes/java/util/logging/LogManager.java
>> ! src/share/classes/java/util/logging/LogRecord.java
>> ! src/share/classes/sun/util/LocaleServiceProviderPool.java
>> + src/share/classes/sun/util/logging/PlatformLogger.java
>> ! src/windows/classes/java/util/prefs/WindowsPreferences.java
>> + test/sun/util/logging/PlatformLoggerTest.java
>> Changeset: 7b4e73ca6fd7
>> Author: mchung
>> Date: 2009-09-18 17:27 -0700
>> URL: http://hg.openjdk.java.net/jdk7/tl/jdk/rev/7b4e73ca6fd7
>> __________ Information from ESET NOD32 Antivirus, version of virus signature database 4439 (20090918) __________
>> The message was checked by ESET NOD32 Antivirus.
More information about the core-libs-dev