提交 00b69649 编写于 作者: R rpatil

8190266: closed/java/awt/ComponentOrientation/WindowTest.java throws...

8190266: closed/java/awt/ComponentOrientation/WindowTest.java throws java.util.MissingResourceException.
Reviewed-by: naoto, serb
上级 db737c87
/* /*
* Copyright (c) 1995, 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1995, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -1656,7 +1656,9 @@ public abstract class Toolkit { ...@@ -1656,7 +1656,9 @@ public abstract class Toolkit {
try { try {
resources = resources =
ResourceBundle.getBundle("sun.awt.resources.awt", ResourceBundle.getBundle("sun.awt.resources.awt",
CoreResourceBundleControl.getRBControlInstance()); Locale.getDefault(),
ClassLoader.getSystemClassLoader(),
CoreResourceBundleControl.getRBControlInstance());
} catch (MissingResourceException e) { } catch (MissingResourceException e) {
// No resource file; defaults will be used. // No resource file; defaults will be used.
} }
......
/* /*
* Copyright (c) 1995, 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1995, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -2786,7 +2786,9 @@ public class Window extends Container implements Accessible { ...@@ -2786,7 +2786,9 @@ public class Window extends Container implements Accessible {
*/ */
@Deprecated @Deprecated
public void applyResourceBundle(String rbName) { public void applyResourceBundle(String rbName) {
applyResourceBundle(ResourceBundle.getBundle(rbName)); applyResourceBundle(ResourceBundle.getBundle(rbName,
Locale.getDefault(),
ClassLoader.getSystemClassLoader()));
} }
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册