Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_langtools
提交
4658d7d5
D
dragonwell8_langtools
项目概览
openanolis
/
dragonwell8_langtools
通知
0
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_langtools
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
4658d7d5
编写于
5月 21, 2015
作者:
M
mchung
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8080815: Update 8u jdeps list of internal APIs
Reviewed-by: dfuchs
上级
8b358888
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
18 addition
and
4 deletion
+18
-4
src/share/classes/com/sun/tools/jdeps/PlatformClassPath.java
src/share/classes/com/sun/tools/jdeps/PlatformClassPath.java
+14
-2
test/tools/jdeps/APIDeps.java
test/tools/jdeps/APIDeps.java
+3
-2
test/tools/jdeps/m/Gee.java
test/tools/jdeps/m/Gee.java
+1
-0
未找到文件。
src/share/classes/com/sun/tools/jdeps/PlatformClassPath.java
浏览文件 @
4658d7d5
...
...
@@ -46,7 +46,7 @@ import static com.sun.tools.classfile.Attribute.*;
*/
class
PlatformClassPath
{
private
static
final
List
<
String
>
NON_PLATFORM_JARFILES
=
Arrays
.
asList
(
"alt-rt.jar"
,
"
jfxrt.jar"
,
"
ant-javafx.jar"
,
"javafx-mx.jar"
);
Arrays
.
asList
(
"alt-rt.jar"
,
"ant-javafx.jar"
,
"javafx-mx.jar"
);
private
static
final
List
<
Archive
>
javaHomeArchives
=
init
();
static
List
<
Archive
>
getArchives
()
{
...
...
@@ -124,6 +124,14 @@ class PlatformClassPath {
*/
static
class
JDKArchive
extends
Archive
{
private
static
List
<
String
>
PROFILE_JARS
=
Arrays
.
asList
(
"rt.jar"
,
"jce.jar"
);
// Workaround: The following packages are not annotated as jdk.Exported
private
static
List
<
String
>
EXPORTED_PACKAGES
=
Arrays
.
asList
(
"javax.jnlp"
,
"org.w3c.dom.css"
,
"org.w3c.dom.html"
,
"org.w3c.dom.stylesheets"
,
"org.w3c.dom.xpath"
);
public
static
boolean
isProfileArchive
(
Archive
archive
)
{
if
(
archive
instanceof
JDKArchive
)
{
return
PROFILE_JARS
.
contains
(
archive
.
getName
());
...
...
@@ -155,7 +163,11 @@ class PlatformClassPath {
* Tests if a given package name is exported.
*/
public
boolean
isExportedPackage
(
String
pn
)
{
if
(
Profile
.
getProfile
(
pn
)
!=
null
||
"javax.jnlp"
.
equals
(
pn
))
{
if
(
Profile
.
getProfile
(
pn
)
!=
null
)
{
return
true
;
}
// special case for JavaFX and APIs that are not annotated with @jdk.Exported)
if
(
EXPORTED_PACKAGES
.
contains
(
pn
)
||
pn
.
startsWith
(
"javafx."
))
{
return
true
;
}
return
exportedPackages
.
containsKey
(
pn
)
?
exportedPackages
.
get
(
pn
)
:
false
;
...
...
test/tools/jdeps/APIDeps.java
浏览文件 @
4658d7d5
...
...
@@ -90,8 +90,9 @@ public class APIDeps {
new
String
[]
{
"-classpath"
,
testDir
.
getPath
(),
"-verbose:class"
,
"-filter:none"
,
"-P"
});
test
(
new
File
(
mDir
,
"Gee.class"
),
new
String
[]
{
"g.G"
,
"sun.misc.Lock"
,
"com.sun.tools.classfile.ClassFile"
,
"com.sun.management.ThreadMXBean"
,
"com.sun.source.tree.BinaryTree"
},
new
String
[]
{
testDirBasename
,
"JDK internal API"
,
"compact3"
,
""
},
"com.sun.management.ThreadMXBean"
,
"com.sun.source.tree.BinaryTree"
,
"org.w3c.dom.css.CSSValue"
},
new
String
[]
{
testDirBasename
,
"JDK internal API"
,
"compact2"
,
"compact3"
,
""
},
new
String
[]
{
"-classpath"
,
testDir
.
getPath
(),
"-verbose"
,
"-P"
});
// -jdkinternals
...
...
test/tools/jdeps/m/Gee.java
浏览文件 @
4658d7d5
...
...
@@ -29,4 +29,5 @@ class Gee extends g.G {
public
com
.
sun
.
tools
.
classfile
.
ClassFile
cf
;
// @jdk.Exported(false)
public
com
.
sun
.
source
.
tree
.
BinaryTree
tree
;
// @jdk.Exported
public
com
.
sun
.
management
.
ThreadMXBean
mxbean
;
// @jdk.Exported on package-info
public
org
.
w3c
.
dom
.
css
.
CSSValue
value
;
// special case
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录