Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
755ffd51
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看板
提交
755ffd51
编写于
7月 27, 2018
作者:
R
robm
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
c2bcb84f
ef211da6
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
28 addition
and
16 deletion
+28
-16
src/share/classes/com/sun/tools/jdi/ReferenceTypeImpl.java
src/share/classes/com/sun/tools/jdi/ReferenceTypeImpl.java
+4
-4
src/solaris/classes/sun/nio/fs/LinuxFileStore.java
src/solaris/classes/sun/nio/fs/LinuxFileStore.java
+15
-6
src/solaris/classes/sun/nio/fs/LinuxFileSystem.java
src/solaris/classes/sun/nio/fs/LinuxFileSystem.java
+3
-3
test/sun/security/tools/jarsigner/warnings.sh
test/sun/security/tools/jarsigner/warnings.sh
+6
-3
未找到文件。
src/share/classes/com/sun/tools/jdi/ReferenceTypeImpl.java
浏览文件 @
755ffd51
/*
/*
* Copyright (c) 1998, 201
1
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1998, 201
8
, 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
...
@@ -1111,7 +1111,7 @@ implements ReferenceType {
...
@@ -1111,7 +1111,7 @@ implements ReferenceType {
this
.
genericSignatureGotten
=
true
;
this
.
genericSignatureGotten
=
true
;
}
}
private
static
boolean
isPrimitiveArray
(
String
signature
)
{
private
static
boolean
is
OneDimensional
PrimitiveArray
(
String
signature
)
{
int
i
=
signature
.
lastIndexOf
(
'['
);
int
i
=
signature
.
lastIndexOf
(
'['
);
/*
/*
* TO DO: Centralize JNI signature knowledge.
* TO DO: Centralize JNI signature knowledge.
...
@@ -1120,7 +1120,7 @@ implements ReferenceType {
...
@@ -1120,7 +1120,7 @@ implements ReferenceType {
* jdk1.4/doc/guide/jpda/jdi/com/sun/jdi/doc-files/signature.html
* jdk1.4/doc/guide/jpda/jdi/com/sun/jdi/doc-files/signature.html
*/
*/
boolean
isPA
;
boolean
isPA
;
if
(
i
<
0
)
{
if
(
i
<
0
||
signature
.
startsWith
(
"[["
)
)
{
isPA
=
false
;
isPA
=
false
;
}
else
{
}
else
{
char
c
=
signature
.
charAt
(
i
+
1
);
char
c
=
signature
.
charAt
(
i
+
1
);
...
@@ -1144,7 +1144,7 @@ implements ReferenceType {
...
@@ -1144,7 +1144,7 @@ implements ReferenceType {
ClassLoaderReferenceImpl
loader
=
ClassLoaderReferenceImpl
loader
=
(
ClassLoaderReferenceImpl
)
classLoader
();
(
ClassLoaderReferenceImpl
)
classLoader
();
if
((
loader
==
null
)
||
if
((
loader
==
null
)
||
(
isPrimitiveArray
(
signature
))
//Work around 4450091
(
is
OneDimensional
PrimitiveArray
(
signature
))
//Work around 4450091
)
{
)
{
// Caller wants type of boot class field
// Caller wants type of boot class field
type
=
vm
.
findBootType
(
signature
);
type
=
vm
.
findBootType
(
signature
);
...
...
src/solaris/classes/sun/nio/fs/LinuxFileStore.java
浏览文件 @
755ffd51
/*
/*
* Copyright (c) 2008, 201
3
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2008, 201
8
, 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
...
@@ -66,6 +66,8 @@ class LinuxFileStore
...
@@ -66,6 +66,8 @@ class LinuxFileStore
}
}
// step 2: find mount point
// step 2: find mount point
List
<
UnixMountEntry
>
procMountsEntries
=
fs
.
getMountEntries
(
"/proc/mounts"
);
UnixPath
parent
=
path
.
getParent
();
UnixPath
parent
=
path
.
getParent
();
while
(
parent
!=
null
)
{
while
(
parent
!=
null
)
{
UnixFileAttributes
attrs
=
null
;
UnixFileAttributes
attrs
=
null
;
...
@@ -74,16 +76,23 @@ class LinuxFileStore
...
@@ -74,16 +76,23 @@ class LinuxFileStore
}
catch
(
UnixException
x
)
{
}
catch
(
UnixException
x
)
{
x
.
rethrowAsIOException
(
parent
);
x
.
rethrowAsIOException
(
parent
);
}
}
if
(
attrs
.
dev
()
!=
dev
())
if
(
attrs
.
dev
()
!=
dev
())
{
break
;
// step 3: lookup mounted file systems (use /proc/mounts to
// ensure we find the file system even when not in /etc/mtab)
byte
[]
dir
=
path
.
asByteArray
();
for
(
UnixMountEntry
entry
:
procMountsEntries
)
{
if
(
Arrays
.
equals
(
dir
,
entry
.
dir
()))
return
entry
;
}
}
path
=
parent
;
path
=
parent
;
parent
=
parent
.
getParent
();
parent
=
parent
.
getParent
();
}
}
// step 3: lookup mounted file systems (use /proc/mounts to
ensure we
// step 3: lookup mounted file systems (use /proc/mounts to
// find the file system even when not in /etc/mtab)
//
ensure we
find the file system even when not in /etc/mtab)
byte
[]
dir
=
path
.
asByteArray
();
byte
[]
dir
=
path
.
asByteArray
();
for
(
UnixMountEntry
entry
:
fs
.
getMountEntries
(
"/proc/mounts"
)
)
{
for
(
UnixMountEntry
entry
:
procMountsEntries
)
{
if
(
Arrays
.
equals
(
dir
,
entry
.
dir
()))
if
(
Arrays
.
equals
(
dir
,
entry
.
dir
()))
return
entry
;
return
entry
;
}
}
...
...
src/solaris/classes/sun/nio/fs/LinuxFileSystem.java
浏览文件 @
755ffd51
/*
/*
* Copyright (c) 2008, 201
3
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2008, 201
8
, 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
...
@@ -75,7 +75,7 @@ class LinuxFileSystem extends UnixFileSystem {
...
@@ -75,7 +75,7 @@ class LinuxFileSystem extends UnixFileSystem {
/**
/**
* Returns object to iterate over the mount entries in the given fstab file.
* Returns object to iterate over the mount entries in the given fstab file.
*/
*/
Iterable
<
UnixMountEntry
>
getMountEntries
(
String
fstab
)
{
List
<
UnixMountEntry
>
getMountEntries
(
String
fstab
)
{
ArrayList
<
UnixMountEntry
>
entries
=
new
ArrayList
<>();
ArrayList
<
UnixMountEntry
>
entries
=
new
ArrayList
<>();
try
{
try
{
long
fp
=
setmntent
(
Util
.
toBytes
(
fstab
),
Util
.
toBytes
(
"r"
));
long
fp
=
setmntent
(
Util
.
toBytes
(
fstab
),
Util
.
toBytes
(
"r"
));
...
@@ -101,7 +101,7 @@ class LinuxFileSystem extends UnixFileSystem {
...
@@ -101,7 +101,7 @@ class LinuxFileSystem extends UnixFileSystem {
* Returns object to iterate over the mount entries in /etc/mtab
* Returns object to iterate over the mount entries in /etc/mtab
*/
*/
@Override
@Override
Iterable
<
UnixMountEntry
>
getMountEntries
()
{
List
<
UnixMountEntry
>
getMountEntries
()
{
return
getMountEntries
(
"/etc/mtab"
);
return
getMountEntries
(
"/etc/mtab"
);
}
}
...
...
test/sun/security/tools/jarsigner/warnings.sh
浏览文件 @
755ffd51
#
#
# Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2013,
2018,
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
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
# @test
# @test
# @bug 8024302
# @bug 8024302
# @bug 8026037
# @bug 8026037
8134124
# @summary Clarify jar verifications
# @summary Clarify jar verifications
#
#
...
@@ -43,13 +43,16 @@ case "$OS" in
...
@@ -43,13 +43,16 @@ case "$OS" in
;;
;;
esac
esac
# make the test locale independent
TESTTOOLVMOPTS
=
"
$TESTTOOLVMOPTS
-J-Duser.language=en -J-Duser.country=US"
KS
=
warnings.jks
KS
=
warnings.jks
JFILE
=
warnings.jar
JFILE
=
warnings.jar
KT
=
"
$TESTJAVA
${
FS
}
bin
${
FS
}
keytool -storepass changeit -keypass changeit
\
KT
=
"
$TESTJAVA
${
FS
}
bin
${
FS
}
keytool -storepass changeit -keypass changeit
\
-keystore
$KS
"
-keystore
$KS
"
JAR
=
$TESTJAVA
${
FS
}
bin
${
FS
}
jar
JAR
=
$TESTJAVA
${
FS
}
bin
${
FS
}
jar
JARSIGNER
=
"
$TESTJAVA
${
FS
}
bin
${
FS
}
jarsigner -keystore
$KS
-storepass changeit"
JARSIGNER
=
"
$TESTJAVA
${
FS
}
bin
${
FS
}
jarsigner
${
TESTTOOLVMOPTS
}
-keystore
$KS
-storepass changeit"
rm
$KS
2> /dev/null
rm
$KS
2> /dev/null
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录