RFR: 8011638 - Remove deprecated methods in sun.util.logging.PlatformLogger
Mandy Chung
mandy.chung at oracle.com
Fri Oct 11 00:07:32 UTC 2013
On 10/10/2013 6:11 AM, Daniel Fuchs wrote:
> Hi,
>
> Please find below a patch for
> 8011638 - Remove deprecated methods in sun.util.logging.PlatformLogger
> https://bugs.openjdk.java.net/browse/JDK-8011638
>
> <http://cr.openjdk.java.net/~dfuchs/webrev_8011638/webrev.00/>
>
As the background, sun.util.logging.PlatformLogger is a private
implementation class for the JDK classes to use to eliminate its
dependency on j.u.logging and for startup performance improvement
(that avoids the initialization of j.u.logging due to its reference
but logging is disabled).
PlatformLogger.Level was introduced JDK-8010309 and replacing
the level constant types from int to PlatformLogger.enum broke
JavaFX as its implementation also wants to avoid the logging
initialization cost while logging any message for debugging purpose.
JavaFX has now upgraded to use PlatformLogger.Level instead of primitive
int type and these int constants and methods that take int level value
are good to go.
Daniel - the change looks good. The test case validating if there
is a private static final field in PlatformLogger can simply be removed.
jdk/test/tools/launcher/FXLauncherTest.java is one sanity test that can
validate the jdk build with FX cobundled.
Mandy
More information about the core-libs-dev
mailing list