Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
6485051e
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
4
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看板
提交
6485051e
编写于
6月 19, 2012
作者:
O
okutsu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
6380549: (rb) ResourceBundle.Control global binding support
Reviewed-by: naoto
上级
6fbaeb48
变更
12
隐藏空白更改
内联
并排
Showing
12 changed file
with
485 addition
and
8 deletion
+485
-8
make/java/java/FILES_java.gmk
make/java/java/FILES_java.gmk
+1
-0
src/share/classes/java/util/ResourceBundle.java
src/share/classes/java/util/ResourceBundle.java
+52
-8
src/share/classes/java/util/spi/ResourceBundleControlProvider.java
.../classes/java/util/spi/ResourceBundleControlProvider.java
+65
-0
test/java/util/spi/ResourceBundleControlProvider/UserDefaultControlTest.java
...ResourceBundleControlProvider/UserDefaultControlTest.java
+59
-0
test/java/util/spi/ResourceBundleControlProvider/UserDefaultControlTest.sh
...i/ResourceBundleControlProvider/UserDefaultControlTest.sh
+24
-0
test/java/util/spi/ResourceBundleControlProvider/providersrc/Makefile
...il/spi/ResourceBundleControlProvider/providersrc/Makefile
+63
-0
test/java/util/spi/ResourceBundleControlProvider/providersrc/UserControlProvider.java
...undleControlProvider/providersrc/UserControlProvider.java
+45
-0
test/java/util/spi/ResourceBundleControlProvider/providersrc/UserXMLControl.java
...urceBundleControlProvider/providersrc/UserXMLControl.java
+95
-0
test/java/util/spi/ResourceBundleControlProvider/providersrc/XmlRB.xml
...l/spi/ResourceBundleControlProvider/providersrc/XmlRB.xml
+40
-0
test/java/util/spi/ResourceBundleControlProvider/providersrc/XmlRB_ja.xml
...pi/ResourceBundleControlProvider/providersrc/XmlRB_ja.xml
+40
-0
test/java/util/spi/ResourceBundleControlProvider/providersrc/java.util.spi.ResourceBundleControlProvider
...r/providersrc/java.util.spi.ResourceBundleControlProvider
+1
-0
test/java/util/spi/ResourceBundleControlProvider/rbcontrolprovider.jar
...l/spi/ResourceBundleControlProvider/rbcontrolprovider.jar
+0
-0
未找到文件。
make/java/java/FILES_java.gmk
浏览文件 @
6485051e
...
...
@@ -372,6 +372,7 @@ JAVA_JAVA_java = \
java/util/spi/CurrencyNameProvider.java \
java/util/spi/LocaleNameProvider.java \
java/util/spi/LocaleServiceProvider.java \
java/util/spi/ResourceBundleControlProvider.java \
java/util/spi/TimeZoneNameProvider.java \
java/io/Closeable.java \
java/io/Flushable.java \
...
...
src/share/classes/java/util/ResourceBundle.java
浏览文件 @
6485051e
/*
* Copyright (c) 1996, 201
1
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1996, 201
2
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -55,6 +55,7 @@ import java.security.PrivilegedExceptionAction;
import
java.util.concurrent.ConcurrentHashMap
;
import
java.util.concurrent.ConcurrentMap
;
import
java.util.jar.JarEntry
;
import
java.util.spi.ResourceBundleControlProvider
;
import
sun.util.locale.BaseLocale
;
import
sun.util.locale.LocaleObjectCache
;
...
...
@@ -192,6 +193,17 @@ import sun.util.locale.LocaleObjectCache;
* {@link #getBundle(String, Locale, ClassLoader, Control) getBundle}
* factory method for details.
*
* <p><a name="modify_default_behavior">For the {@code getBundle} factory
* methods that take no {@link Control} instance, their <a
* href="#default_behavior"> default behavior</a> of resource bundle loading
* can be modified with <em>installed</em> {@link
* ResourceBundleControlProvider} implementations. Any installed providers are
* detected at the {@code ResourceBundle} class loading time. If any of the
* providers provides a {@link Control} for the given base name, that {@link
* Control} will be used instead of the default {@link Control}. If there is
* more than one service provider installed for supporting the same base name,
* the first one returned from {@link ServiceLoader} will be used.
*
* <h4>Cache Management</h4>
*
* Resource bundle instances created by the <code>getBundle</code> factory
...
...
@@ -294,8 +306,7 @@ public abstract class ResourceBundle {
/**
* Queue for reference objects referring to class loaders or bundles.
*/
private
static
final
ReferenceQueue
<
Object
>
referenceQueue
=
new
ReferenceQueue
<>();
private
static
final
ReferenceQueue
<
Object
>
referenceQueue
=
new
ReferenceQueue
<>();
/**
* The parent bundle of this bundle.
...
...
@@ -330,6 +341,21 @@ public abstract class ResourceBundle {
*/
private
volatile
Set
<
String
>
keySet
;
private
static
final
List
<
ResourceBundleControlProvider
>
providers
;
static
{
List
<
ResourceBundleControlProvider
>
list
=
null
;
ServiceLoader
<
ResourceBundleControlProvider
>
serviceLoaders
=
ServiceLoader
.
loadInstalled
(
ResourceBundleControlProvider
.
class
);
for
(
ResourceBundleControlProvider
provider
:
serviceLoaders
)
{
if
(
list
==
null
)
{
list
=
new
ArrayList
<>();
}
list
.
add
(
provider
);
}
providers
=
list
;
}
/**
* Sole constructor. (For invocation by subclass constructors, typically
* implicit.)
...
...
@@ -725,7 +751,7 @@ public abstract class ResourceBundle {
return
getBundleImpl
(
baseName
,
Locale
.
getDefault
(),
/* must determine loader here, else we break stack invariant */
getLoader
(),
Control
.
INSTANCE
);
getDefaultControl
(
baseName
)
);
}
/**
...
...
@@ -797,7 +823,7 @@ public abstract class ResourceBundle {
return
getBundleImpl
(
baseName
,
locale
,
/* must determine loader here, else we break stack invariant */
getLoader
(),
Control
.
INSTANCE
);
getDefaultControl
(
baseName
)
);
}
/**
...
...
@@ -849,9 +875,15 @@ public abstract class ResourceBundle {
* Gets a resource bundle using the specified base name, locale, and class
* loader.
*
* <p>
<a name="default_behavior"/>
This method behaves the same as calling
* <p>This method behaves the same as calling
* {@link #getBundle(String, Locale, ClassLoader, Control)} passing a
* default instance of {@link Control}. The following describes this behavior.
* default instance of {@link Control} unless another {@link Control} is
* provided with the {@link ResourceBundleControlProvider} SPI. Refer to the
* description of <a href="#modify_default_behavior">modifying the default
* behavior</a>.
*
* <p><a name="default_behavior"/>The following describes the default
* behavior.
*
* <p><code>getBundle</code> uses the base name, the specified locale, and
* the default locale (obtained from {@link java.util.Locale#getDefault()
...
...
@@ -1026,7 +1058,7 @@ public abstract class ResourceBundle {
if
(
loader
==
null
)
{
throw
new
NullPointerException
();
}
return
getBundleImpl
(
baseName
,
locale
,
loader
,
Control
.
INSTANCE
);
return
getBundleImpl
(
baseName
,
locale
,
loader
,
getDefaultControl
(
baseName
)
);
}
/**
...
...
@@ -1247,6 +1279,18 @@ public abstract class ResourceBundle {
return
getBundleImpl
(
baseName
,
targetLocale
,
loader
,
control
);
}
private
static
Control
getDefaultControl
(
String
baseName
)
{
if
(
providers
!=
null
)
{
for
(
ResourceBundleControlProvider
provider
:
providers
)
{
Control
control
=
provider
.
getControl
(
baseName
);
if
(
control
!=
null
)
{
return
control
;
}
}
}
return
Control
.
INSTANCE
;
}
private
static
ResourceBundle
getBundleImpl
(
String
baseName
,
Locale
locale
,
ClassLoader
loader
,
Control
control
)
{
if
(
locale
==
null
||
control
==
null
)
{
...
...
src/share/classes/java/util/spi/ResourceBundleControlProvider.java
0 → 100644
浏览文件 @
6485051e
/*
* Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package
java.util.spi
;
import
java.util.ResourceBundle
;
/**
* An interface for service providers that provide implementations of {@link
* java.util.ResourceBundle.Control}. The <a
* href="../ResourceBundle.html#default_behavior">default resource bundle loading
* behavior</a> of the {@code ResourceBundle.getBundle} factory methods that take
* no {@link java.util.ResourceBundle.Control} instance can be modified with {@code
* ResourceBundleControlProvider} implementations.
*
* <p>Provider implementations must be packaged using the <a
* href="../../../../technotes/guides/extensions/index.html">Java Extension
* Mechanism</a> as installed extensions. Refer to {@link java.util.ServiceLoader}
* for the extension packaging. Any installed {@code
* ResourceBundleControlProvider} implementations are loaded using {@link
* java.util.ServiceLoader} at the {@code ResourceBundle} class loading time.
*
* @author Masayoshi Okutsu
* @since 1.8
* @see ResourceBundle#getBundle(String, java.util.Locale, ClassLoader, ResourceBundle.Control)
* ResourceBundle.getBundle
* @see java.util.ServiceLoader#loadInstalled(Class)
*/
public
interface
ResourceBundleControlProvider
{
/**
* Returns a {@code ResourceBundle.Control} instance that is used
* to handle resource bundle loading for the given {@code
* baseName}. This method must return {@code null} if the given
* {@code baseName} isn't handled by this provider.
*
* @param baseName the base name of the resource bundle
* @return a {@code ResourceBundle.Control} instance,
* or {@code null} if the given {@code baseName} is not
* applicable to this provider.
* @throws NullPointerException if {@code baseName} is {@code null}
*/
public
ResourceBundle
.
Control
getControl
(
String
baseName
);
}
test/java/util/spi/ResourceBundleControlProvider/UserDefaultControlTest.java
0 → 100644
浏览文件 @
6485051e
/*
* Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 6959653
* @summary Test ResourceBundle.Control provided using SPI.
* @build UserDefaultControlTest
* @run shell UserDefaultControlTest.sh
*/
import
java.io.*
;
import
java.net.*
;
import
java.util.*
;
public
class
UserDefaultControlTest
{
public
static
void
main
(
String
[]
args
)
{
ResourceBundle
rb
=
ResourceBundle
.
getBundle
(
"com.foo.XmlRB"
,
Locale
.
ROOT
);
String
type
=
rb
.
getString
(
"type"
);
if
(!
type
.
equals
(
"XML"
))
{
throw
new
RuntimeException
(
"Root Locale: type: got "
+
type
+
", expected XML (ASCII)"
);
}
rb
=
ResourceBundle
.
getBundle
(
"com.foo.XmlRB"
,
Locale
.
JAPAN
);
type
=
rb
.
getString
(
"type"
);
// Expect fullwidth "XML"
if
(!
type
.
equals
(
"\uff38\uff2d\uff2c"
))
{
throw
new
RuntimeException
(
"Locale.JAPAN: type: got "
+
type
+
", expected \uff38\uff2d\uff2c (fullwidth XML)"
);
}
try
{
rb
=
ResourceBundle
.
getBundle
(
"com.bar.XmlRB"
,
Locale
.
JAPAN
);
throw
new
RuntimeException
(
"com.bar.XmlRB test failed."
);
}
catch
(
MissingResourceException
e
)
{
// OK
}
}
}
test/java/util/spi/ResourceBundleControlProvider/UserDefaultControlTest.sh
0 → 100644
浏览文件 @
6485051e
#
# Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
# or visit www.oracle.com if you need additional information or have any
# questions.
#
${
TESTJAVA
}
/bin/java
-Djava
.ext.dirs
=
${
TESTSRC
}
-cp
${
TESTCLASSES
}
UserDefaultControlTest
\ No newline at end of file
test/java/util/spi/ResourceBundleControlProvider/providersrc/Makefile
0 → 100644
浏览文件 @
6485051e
#
# Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation. Oracle designates this
# particular file as subject to the "Classpath" exception as provided
# by Oracle in the LICENSE file that accompanied this code.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
# or visit www.oracle.com if you need additional information or have any
# questions.
#
#
# Makefile for building a ResourceBundleControlProvider jar file for testing.
#
# Usage: make JDK_HOME=... all install
#
DESTDIR
=
..
TMPDIR
=
tmp
SERVICESDIR
=
$(TMPDIR)
/META-INF/services
TARGETJAR
=
rbcontrolprovider.jar
BINDIR
=
$(JDK_HOME)
/bin
all
:
$(TARGETJAR)
install
:
all
cp
$(TARGETJAR)
$(DESTDIR)
SERVICES
=
java.util.spi.ResourceBundleControlProvider
FILES_JAVA
=
UserControlProvider.java
\
UserXMLControl.java
RESOURCE_FILES
=
XmlRB.xml
\
XmlRB_ja.xml
$(TARGETJAR)
:
$(SERVICES) $(FILES_JAVA) $(RESOURCE_FILES)
rm
-rf
$(TMPDIR)
$@
mkdir
-p
$(SERVICESDIR)
$(BINDIR)
/javac
-d
$(TMPDIR)
$(FILES_JAVA)
cp
$(SERVICES)
$(SERVICESDIR)
cp
$(RESOURCE_FILES)
$(TMPDIR)
/com/foo
$(BINDIR)
/jar cvf
$@
-C
$(TMPDIR)
.
clean
:
rm
-rf
$(TMPDIR)
$(TARGETJAR)
.PHONY
:
all install clean
test/java/util/spi/ResourceBundleControlProvider/providersrc/UserControlProvider.java
0 → 100644
浏览文件 @
6485051e
/*
* Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package
com.foo
;
import
java.util.ResourceBundle
;
import
java.util.spi.ResourceBundleControlProvider
;
public
class
UserControlProvider
implements
ResourceBundleControlProvider
{
static
final
ResourceBundle
.
Control
XMLCONTROL
=
new
UserXMLControl
();
public
ResourceBundle
.
Control
getControl
(
String
baseName
)
{
System
.
out
.
println
(
getClass
().
getName
()+
".getControl called for "
+
baseName
);
// Throws a NPE if baseName is null.
if
(
baseName
.
startsWith
(
"com.foo.Xml"
))
{
System
.
out
.
println
(
"\treturns "
+
XMLCONTROL
);
return
XMLCONTROL
;
}
System
.
out
.
println
(
"\treturns null"
);
return
null
;
}
}
test/java/util/spi/ResourceBundleControlProvider/providersrc/UserXMLControl.java
0 → 100644
浏览文件 @
6485051e
/*
* Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package
com.foo
;
import
java.io.*
;
import
java.net.*
;
import
java.util.*
;
import
static
java
.
util
.
ResourceBundle
.
Control
.*;
public
class
UserXMLControl
extends
ResourceBundle
.
Control
{
@Override
public
List
<
String
>
getFormats
(
String
baseName
)
{
if
(
baseName
==
null
)
{
throw
new
NullPointerException
();
}
return
Arrays
.
asList
(
"xml"
);
}
@Override
public
ResourceBundle
newBundle
(
String
baseName
,
Locale
locale
,
String
format
,
ClassLoader
loader
,
boolean
reload
)
throws
IllegalAccessException
,
InstantiationException
,
IOException
{
if
(
baseName
==
null
||
locale
==
null
||
format
==
null
||
loader
==
null
)
{
throw
new
NullPointerException
();
}
ResourceBundle
bundle
=
null
;
if
(
format
.
equals
(
"xml"
))
{
String
bundleName
=
toBundleName
(
baseName
,
locale
);
String
resourceName
=
toResourceName
(
bundleName
,
format
);
URL
url
=
loader
.
getResource
(
resourceName
);
if
(
url
!=
null
)
{
URLConnection
connection
=
url
.
openConnection
();
if
(
connection
!=
null
)
{
if
(
reload
)
{
// disable caches if reloading
connection
.
setUseCaches
(
false
);
}
try
(
InputStream
stream
=
connection
.
getInputStream
())
{
if
(
stream
!=
null
)
{
BufferedInputStream
bis
=
new
BufferedInputStream
(
stream
);
bundle
=
new
XMLResourceBundle
(
bis
);
}
}
}
}
}
return
bundle
;
}
private
static
class
XMLResourceBundle
extends
ResourceBundle
{
private
Properties
props
;
XMLResourceBundle
(
InputStream
stream
)
throws
IOException
{
props
=
new
Properties
();
props
.
loadFromXML
(
stream
);
}
protected
Object
handleGetObject
(
String
key
)
{
if
(
key
==
null
)
{
throw
new
NullPointerException
();
}
return
props
.
get
(
key
);
}
public
Enumeration
<
String
>
getKeys
()
{
// Not implemented
return
null
;
}
}
}
test/java/util/spi/ResourceBundleControlProvider/providersrc/XmlRB.xml
0 → 100644
浏览文件 @
6485051e
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
This code is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License version 2 only, as
published by the Free Software Foundation. Oracle designates this
particular file as subject to the Classpath exception as provided
by Oracle in the LICENSE file that accompanied this code.
This code is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
version 2 for more details (a copy is included in the LICENSE file that
accompanied this code).
You should have received a copy of the GNU General Public License version
2 along with this work; if not, write to the Free Software Foundation,
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
or visit www.oracle.com if you need additional information or have any
questions.
-->
<!---->
<!-- DTD for properties -->
<!DOCTYPE properties [
<!ELEMENT properties ( comment?, entry* ) >
<!ATTLIST properties version CDATA #FIXED "1.0">
<!ELEMENT comment (#PCDATA) >
<!ELEMENT entry (#PCDATA) >
<!ATTLIST entry key CDATA #REQUIRED>
]>
<properties>
<comment>
Test data for UserDefaultControlTest.java
</comment>
<entry
key=
"type"
>
XML
</entry>
</properties>
test/java/util/spi/ResourceBundleControlProvider/providersrc/XmlRB_ja.xml
0 → 100644
浏览文件 @
6485051e
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
This code is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License version 2 only, as
published by the Free Software Foundation. Oracle designates this
particular file as subject to the Classpath exception as provided
by Oracle in the LICENSE file that accompanied this code.
This code is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
version 2 for more details (a copy is included in the LICENSE file that
accompanied this code).
You should have received a copy of the GNU General Public License version
2 along with this work; if not, write to the Free Software Foundation,
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
or visit www.oracle.com if you need additional information or have any
questions.
-->
<!---->
<!-- DTD for properties -->
<!DOCTYPE properties [
<!ELEMENT properties ( comment?, entry* ) >
<!ATTLIST properties version CDATA #FIXED "1.0">
<!ELEMENT comment (#PCDATA) >
<!ELEMENT entry (#PCDATA) >
<!ATTLIST entry key CDATA #REQUIRED>
]>
<properties>
<comment>
Test data for UserDefaultControlTest.java
</comment>
<entry
key=
"type"
>
XML
</entry>
</properties>
test/java/util/spi/ResourceBundleControlProvider/providersrc/java.util.spi.ResourceBundleControlProvider
0 → 100644
浏览文件 @
6485051e
com.foo.UserControlProvider
test/java/util/spi/ResourceBundleControlProvider/rbcontrolprovider.jar
0 → 100644
浏览文件 @
6485051e
文件已添加
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录