Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
97f8d985
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看板
提交
97f8d985
编写于
4月 18, 2018
作者:
A
asaha
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
d27dadbe
3343788d
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
42 addition
and
38 deletion
+42
-38
.hgtags
.hgtags
+4
-0
src/share/classes/com/sun/tools/jdi/VirtualMachineImpl.java
src/share/classes/com/sun/tools/jdi/VirtualMachineImpl.java
+11
-17
src/windows/classes/sun/awt/windows/WToolkit.java
src/windows/classes/sun/awt/windows/WToolkit.java
+1
-0
src/windows/native/sun/windows/awt_Toolkit.cpp
src/windows/native/sun/windows/awt_Toolkit.cpp
+1
-2
test/java/security/SignedObject/Chain.java
test/java/security/SignedObject/Chain.java
+12
-11
test/java/util/zip/InflateIn_DeflateOut.java
test/java/util/zip/InflateIn_DeflateOut.java
+2
-3
test/sun/security/pkcs11/ec/ReadCertificates.java
test/sun/security/pkcs11/ec/ReadCertificates.java
+10
-4
test/sun/security/provider/DSA/SupportedDSAParamGen.java
test/sun/security/provider/DSA/SupportedDSAParamGen.java
+1
-1
未找到文件。
.hgtags
浏览文件 @
97f8d985
...
...
@@ -866,6 +866,7 @@ e03fff22900242d92a97839a9c095bb106bdc68f jdk8u162-b36
b6195815c4bbbf275f1aefd337d805eb66f2b5b8 jdk8u171-b00
f1792a59f1fa20e47fe5d4561754012440564bec jdk8u171-b01
cac020298633fc736f5e21afddf00145665ef0a7 jdk8u171-b02
e7e27f446209924f66a4bf86738f3e5f2fbbef5f jdk8u181-b00
c260afc0c5a13407aad4f066f81fba814bb0cbae jdk8u171-b03
ac700f67341a20ddae093c319da1c65e41edcacd jdk8u171-b04
863ef3413aa42c15fbdc14fef6732f2741f97046 jdk8u171-b05
...
...
@@ -889,3 +890,6 @@ a8746b41e23a1deda3d0f41ed2eca3d3a4cc74de jdk8u191-b00
f52ece1d8708024735f06e7e3bdc771efbc073d0 jdk8u172-b09
9e9009034e5ce97a97f72c00cd37cf2a638fa1a4 jdk8u172-b10
2a041b1f858dc6a372ac07b8cf5bf6fab879dcc8 jdk8u172-b11
d902fae6241006af3c4cfc4ce82ebcb3efb9d725 jdk8u181-b01
baac18e216fb47b4cfa04169b3c3de58d667de7c jdk8u181-b02
d237c59d14e1c1fb1f750e9cdabcea6e711f4d34 jdk8u181-b03
src/share/classes/com/sun/tools/jdi/VirtualMachineImpl.java
浏览文件 @
97f8d985
/*
* Copyright (c) 1998, 201
5
, 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.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -674,20 +674,18 @@ class VirtualMachineImpl extends MirrorImpl
versionInfo
().
jdwpMinor
>=
6
;
}
public
boolean
canGetInstanceInfo
()
{
if
(
versionInfo
().
jdwpMajor
<
1
||
versionInfo
().
jdwpMinor
<
6
)
{
if
(
versionInfo
().
jdwpMajor
>
1
||
versionInfo
().
jdwpMinor
>=
6
)
{
validateVM
();
return
hasNewCapabilities
()
&&
capabilitiesNew
().
canGetInstanceInfo
;
}
else
{
return
false
;
}
validateVM
();
return
hasNewCapabilities
()
&&
capabilitiesNew
().
canGetInstanceInfo
;
}
public
boolean
canUseSourceNameFilters
()
{
if
(
versionInfo
().
jdwpMajor
<
1
||
versionInfo
().
jdwpMinor
<
6
)
{
return
false
;
}
return
true
;
return
versionInfo
().
jdwpMajor
>
1
||
versionInfo
().
jdwpMinor
>=
6
;
}
public
boolean
canForceEarlyReturn
()
{
validateVM
();
...
...
@@ -703,12 +701,8 @@ class VirtualMachineImpl extends MirrorImpl
capabilitiesNew
().
canGetSourceDebugExtension
;
}
public
boolean
canGetClassFileVersion
()
{
if
(
versionInfo
().
jdwpMajor
<
1
&&
versionInfo
().
jdwpMinor
<
6
)
{
return
false
;
}
else
{
return
true
;
}
return
versionInfo
().
jdwpMajor
>
1
||
versionInfo
().
jdwpMinor
>=
6
;
}
public
boolean
canGetConstantPool
()
{
validateVM
();
...
...
src/windows/classes/sun/awt/windows/WToolkit.java
浏览文件 @
97f8d985
...
...
@@ -1123,6 +1123,7 @@ public final class WToolkit extends SunToolkit implements Runnable {
}
if
((
e
instanceof
MouseEvent
)
&&
comp
.
isEnabled
()
&&
comp
.
isFocusable
()
&&
(((
comp
instanceof
TextComponent
)
&&
((
TextComponent
)
comp
).
isEditable
())
||
((
comp
instanceof
JTextComponent
)
&&
...
...
src/windows/native/sun/windows/awt_Toolkit.cpp
浏览文件 @
97f8d985
...
...
@@ -490,8 +490,7 @@ void AwtToolkit::InitTouchKeyboardExeFilePath() {
HWND
AwtToolkit
::
GetTouchKeyboardWindow
()
{
const
TCHAR
wndClassName
[]
=
_T
(
"IPTip_Main_Window"
);
HWND
hwnd
=
::
FindWindow
(
wndClassName
,
NULL
);
if
((
hwnd
!=
NULL
)
&&
::
IsWindow
(
hwnd
)
&&
::
IsWindowEnabled
(
hwnd
)
&&
::
IsWindowVisible
(
hwnd
))
{
if
((
hwnd
!=
NULL
)
&&
::
IsWindow
(
hwnd
)
&&
::
IsWindowEnabled
(
hwnd
))
{
return
hwnd
;
}
return
NULL
;
...
...
test/java/security/SignedObject/Chain.java
浏览文件 @
97f8d985
/*
* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2015,
2017,
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
...
...
@@ -142,8 +142,17 @@ public class Chain {
PrivateKey
[]
privKeys
=
new
PrivateKey
[
N
];
PublicKey
[]
pubKeys
=
new
PublicKey
[
N
];
PublicKey
[]
anotherPubKeys
=
new
PublicKey
[
N
];
KeyPairGenerator
kpg
=
KeyPairGenerator
.
getInstance
(
test
.
keyAlg
.
name
);
Signature
signature
;
KeyPairGenerator
kpg
;
if
(
test
.
provider
!=
Provider
.
Default
)
{
signature
=
Signature
.
getInstance
(
test
.
sigAlg
.
name
,
test
.
provider
.
name
);
kpg
=
KeyPairGenerator
.
getInstance
(
test
.
keyAlg
.
name
,
test
.
provider
.
name
);
}
else
{
signature
=
Signature
.
getInstance
(
test
.
sigAlg
.
name
);
kpg
=
KeyPairGenerator
.
getInstance
(
test
.
keyAlg
.
name
);
}
for
(
int
j
=
0
;
j
<
N
;
j
++)
{
if
(
test
.
keySize
!=
-
1
)
{
kpg
.
initialize
(
test
.
keySize
);
...
...
@@ -162,14 +171,6 @@ public class Chain {
}
}
Signature
signature
;
if
(
test
.
provider
!=
Provider
.
Default
)
{
signature
=
Signature
.
getInstance
(
test
.
sigAlg
.
name
,
test
.
provider
.
name
);
}
else
{
signature
=
Signature
.
getInstance
(
test
.
sigAlg
.
name
);
}
// Create a chain of signed objects
SignedObject
[]
objects
=
new
SignedObject
[
N
];
objects
[
0
]
=
new
SignedObject
(
str
,
privKeys
[
0
],
signature
);
...
...
test/java/util/zip/InflateIn_DeflateOut.java
浏览文件 @
97f8d985
...
...
@@ -23,7 +23,7 @@
/**
* @test
* @bug 4206909 4813885 8189789
* @bug 4206909 4813885 8189789
8196854
* @summary Test basic functionality of DeflaterOutputStream/InflaterInputStream and GZIPOutputStream/GZIPInputStream, including flush
*/
...
...
@@ -153,7 +153,6 @@ public class InflateIn_DeflateOut {
OutputStream
output
=
new
FlushableGZIPOutputStream
(
byteOutStream
);
byte
[]
data
=
new
byte
[
random
.
nextInt
(
1024
*
1024
)];
byte
[]
buf
=
new
byte
[
data
.
length
];
random
.
nextBytes
(
data
);
output
.
write
(
data
);
...
...
@@ -175,7 +174,7 @@ public class InflateIn_DeflateOut {
int
numRead
;
byte
[]
b
=
new
byte
[
4
*
1024
];
try
{
while
((
numRead
=
gzis
.
read
(
b
uf
))
>=
0
)
{
while
((
numRead
=
gzis
.
read
(
b
))
>=
0
)
{
baos
.
write
(
b
,
0
,
numRead
);
}
}
finally
{
...
...
test/sun/security/pkcs11/ec/ReadCertificates.java
浏览文件 @
97f8d985
/*
* Copyright (c) 2006, 201
3
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2006, 201
4
, 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
...
...
@@ -23,7 +23,7 @@
/**
* @test
* @bug 6405536 6414980
* @bug 6405536 6414980
8051972
* @summary Make sure that we can parse certificates using various named curves
* and verify their signatures
* @author Andreas Sterbenz
...
...
@@ -153,8 +153,14 @@ public class ReadCertificates extends PKCS11Test {
signer
=
getRandomCert
(
certList
);
}
while
(
cert
.
getIssuerX500Principal
().
equals
(
signer
.
getSubjectX500Principal
()));
try
{
cert
.
verify
(
signer
.
getPublicKey
());
throw
new
Exception
(
"Verified invalid signature"
);
PublicKey
signerPublicKey
=
signer
.
getPublicKey
();
cert
.
verify
(
signerPublicKey
);
// Ignore false positives
if
(
cert
.
getPublicKey
().
equals
(
signerPublicKey
))
{
System
.
out
.
println
(
"OK: self-signed certificate detected"
);
}
else
{
throw
new
Exception
(
"Verified invalid signature"
);
}
}
catch
(
SignatureException
e
)
{
System
.
out
.
println
(
"OK: "
+
e
);
}
catch
(
InvalidKeyException
e
)
{
...
...
test/sun/security/provider/DSA/SupportedDSAParamGen.java
浏览文件 @
97f8d985
...
...
@@ -29,7 +29,7 @@
* @run main/timeout=300 SupportedDSAParamGen 1024 160
* @run main/timeout=300 SupportedDSAParamGen 2048 224
* @run main/timeout=300 SupportedDSAParamGen 2048 256
* @run main/timeout=
45
0 SupportedDSAParamGen 3072 256
* @run main/timeout=
70
0 SupportedDSAParamGen 3072 256
*/
import
java.security.*
;
import
java.security.spec.*
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录