Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
4e54e999
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看板
提交
4e54e999
编写于
12月 06, 2017
作者:
C
coffeys
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8185855: Debug exception stacks should be clearer
Reviewed-by: mullan, ascarpino
上级
1f86a9b8
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
15 addition
and
24 deletion
+15
-24
src/share/classes/java/security/IdentityScope.java
src/share/classes/java/security/IdentityScope.java
+2
-2
src/share/classes/java/security/Signature.java
src/share/classes/java/security/Signature.java
+1
-1
src/share/classes/sun/security/jca/ProviderList.java
src/share/classes/sun/security/jca/ProviderList.java
+1
-1
src/share/classes/sun/security/pkcs/PKCS8Key.java
src/share/classes/sun/security/pkcs/PKCS8Key.java
+0
-1
src/share/classes/sun/security/provider/AuthPolicyFile.java
src/share/classes/sun/security/provider/AuthPolicyFile.java
+2
-1
src/share/classes/sun/security/provider/DSA.java
src/share/classes/sun/security/provider/DSA.java
+0
-12
src/share/classes/sun/security/provider/PolicyFile.java
src/share/classes/sun/security/provider/PolicyFile.java
+3
-1
src/share/classes/sun/security/util/AnchorCertificates.java
src/share/classes/sun/security/util/AnchorCertificates.java
+1
-1
src/share/classes/sun/security/util/SignatureFileVerifier.java
...hare/classes/sun/security/util/SignatureFileVerifier.java
+3
-2
src/share/classes/sun/security/x509/CertificateExtensions.java
...hare/classes/sun/security/x509/CertificateExtensions.java
+2
-1
src/share/classes/sun/security/x509/X509Key.java
src/share/classes/sun/security/x509/X509Key.java
+0
-1
未找到文件。
src/share/classes/java/security/IdentityScope.java
浏览文件 @
4e54e999
...
...
@@ -88,8 +88,8 @@ class IdentityScope extends Identity {
try
{
Class
.
forName
(
classname
);
}
catch
(
ClassNotFoundException
e
)
{
//Security.error
("unable to establish a system scope from " +
//
classname);
System
.
err
.
println
(
"unable to establish a system scope from "
+
classname
);
e
.
printStackTrace
();
}
}
...
...
src/share/classes/java/security/Signature.java
浏览文件 @
4e54e999
...
...
@@ -1051,7 +1051,7 @@ public abstract class Signature extends SignatureSpi {
debug
.
println
(
"Further warnings of this type will "
+
"be suppressed"
);
}
new
Exception
(
"
C
all trace"
).
printStackTrace
();
new
Exception
(
"
Debug c
all trace"
).
printStackTrace
();
}
}
Exception
lastException
=
null
;
...
...
src/share/classes/sun/security/jca/ProviderList.java
浏览文件 @
4e54e999
...
...
@@ -275,7 +275,7 @@ public final class ProviderList {
}
if
(
debug
!=
null
)
{
debug
.
println
(
"Loading all providers"
);
new
Exception
(
"
Call trace
"
).
printStackTrace
();
new
Exception
(
"
Debug Info. Call trace:
"
).
printStackTrace
();
}
int
n
=
0
;
for
(
int
i
=
0
;
i
<
configs
.
length
;
i
++)
{
...
...
src/share/classes/sun/security/pkcs/PKCS8Key.java
浏览文件 @
4e54e999
...
...
@@ -347,7 +347,6 @@ public class PKCS8Key implements PrivateKey {
}
}
catch
(
IOException
e
)
{
// e.printStackTrace ();
throw
new
InvalidKeyException
(
"IOException : "
+
e
.
getMessage
());
}
...
...
src/share/classes/sun/security/provider/AuthPolicyFile.java
浏览文件 @
4e54e999
...
...
@@ -186,6 +186,7 @@ public class AuthPolicyFile extends javax.security.auth.Policy {
}
catch
(
Exception
e
)
{
// ignore, treat it like we have no keystore
if
(
debug
!=
null
)
{
debug
.
println
(
"Debug info only. No keystore."
);
e
.
printStackTrace
();
}
return
null
;
...
...
@@ -260,7 +261,7 @@ public class AuthPolicyFile extends javax.security.auth.Policy {
loaded_one
=
true
;
}
catch
(
Exception
e
)
{
if
(
debug
!=
null
)
{
debug
.
println
(
"
e
rror reading policy "
+
e
);
debug
.
println
(
"
Debug info only. E
rror reading policy "
+
e
);
e
.
printStackTrace
();
}
// ignore that policy
...
...
src/share/classes/sun/security/provider/DSA.java
浏览文件 @
4e54e999
...
...
@@ -434,18 +434,6 @@ abstract class DSA extends SignatureSpi {
return
printable
;
}
private
static
void
debug
(
Exception
e
)
{
if
(
debug
)
{
e
.
printStackTrace
();
}
}
private
static
void
debug
(
String
s
)
{
if
(
debug
)
{
System
.
err
.
println
(
s
);
}
}
/**
* Standard SHA224withDSA implementation as defined in FIPS186-3.
*/
...
...
src/share/classes/sun/security/provider/PolicyFile.java
浏览文件 @
4e54e999
...
...
@@ -563,7 +563,8 @@ public class PolicyFile extends java.security.Policy {
loaded_policy
=
true
;
}
catch
(
Exception
e
)
{
if
(
debug
!=
null
)
{
debug
.
println
(
"error reading policy "
+
e
);
debug
.
println
(
"Debug info only. Error reading policy "
+
e
);
e
.
printStackTrace
();
}
// ignore that policy
...
...
@@ -616,6 +617,7 @@ public class PolicyFile extends java.security.Policy {
}
catch
(
Exception
e
)
{
// ignore, treat it like we have no keystore
if
(
debug
!=
null
)
{
debug
.
println
(
"Debug info only. Ignoring exception."
);
e
.
printStackTrace
();
}
}
...
...
src/share/classes/sun/security/util/AnchorCertificates.java
浏览文件 @
4e54e999
...
...
@@ -75,8 +75,8 @@ public class AnchorCertificates {
}
catch
(
Exception
e
)
{
if
(
debug
!=
null
)
{
debug
.
println
(
"Error parsing cacerts"
);
e
.
printStackTrace
();
}
e
.
printStackTrace
();
}
return
null
;
}
...
...
src/share/classes/sun/security/util/SignatureFileVerifier.java
浏览文件 @
4e54e999
...
...
@@ -380,8 +380,9 @@ public class SignatureFileVerifier {
if
(
e
.
getMessage
()
!=
null
)
{
debug
.
println
(
key
+
": "
+
e
.
getMessage
());
}
else
{
debug
.
println
(
key
+
": "
+
algorithm
+
" was disabled, no exception msg given."
);
debug
.
println
(
"Debug info only. "
+
key
+
": "
+
algorithm
+
" was disabled, no exception msg given."
);
e
.
printStackTrace
();
}
}
...
...
src/share/classes/sun/security/x509/CertificateExtensions.java
浏览文件 @
4e54e999
...
...
@@ -124,7 +124,8 @@ public class CertificateExtensions implements CertAttrSet<Extension> {
unparseableExtensions
.
put
(
ext
.
getExtensionId
().
toString
(),
new
UnparseableExtension
(
ext
,
e
));
if
(
debug
!=
null
)
{
debug
.
println
(
"Error parsing extension: "
+
ext
);
debug
.
println
(
"Debug info only."
+
" Error parsing extension: "
+
ext
);
e
.
printStackTrace
();
HexDumpEncoder
h
=
new
HexDumpEncoder
();
System
.
err
.
println
(
h
.
encodeBuffer
(
ext
.
getExtensionValue
()));
...
...
src/share/classes/sun/security/x509/X509Key.java
浏览文件 @
4e54e999
...
...
@@ -393,7 +393,6 @@ public class X509Key implements PublicKey {
throw
new
InvalidKeyException
(
"excess key data"
);
}
catch
(
IOException
e
)
{
// e.printStackTrace ();
throw
new
InvalidKeyException
(
"IOException: "
+
e
.
getMessage
());
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录