Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
4a24cc68
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看板
提交
4a24cc68
编写于
1月 22, 2016
作者:
S
sla
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8036132: Tab characters in test/com/sun/jdi files
Reviewed-by: alanb, mikael
上级
92e4e8d2
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
58 addition
and
58 deletion
+58
-58
test/com/sun/jdi/CatchPatternTest.sh
test/com/sun/jdi/CatchPatternTest.sh
+27
-27
test/com/sun/jdi/GetLocalVariables4Test.sh
test/com/sun/jdi/GetLocalVariables4Test.sh
+6
-6
test/com/sun/jdi/JdbReadTwiceTest.sh
test/com/sun/jdi/JdbReadTwiceTest.sh
+1
-1
test/com/sun/jdi/NullLocalVariable.sh
test/com/sun/jdi/NullLocalVariable.sh
+8
-8
test/com/sun/jdi/PrivateTransportTest.sh
test/com/sun/jdi/PrivateTransportTest.sh
+2
-2
test/com/sun/jdi/RedefineFinal.sh
test/com/sun/jdi/RedefineFinal.sh
+6
-6
test/com/sun/jdi/RedefineIntConstantToLong.sh
test/com/sun/jdi/RedefineIntConstantToLong.sh
+5
-5
test/com/sun/jdi/StringConvertTest.sh
test/com/sun/jdi/StringConvertTest.sh
+1
-1
test/com/sun/jdi/SuspendNoFlagTest.sh
test/com/sun/jdi/SuspendNoFlagTest.sh
+2
-2
未找到文件。
test/com/sun/jdi/CatchPatternTest.sh
浏览文件 @
4a24cc68
...
...
@@ -35,44 +35,44 @@ createJavaFile()
cat
<<
EOF
>
$classname
.java.1
public class
$classname
{
public void bark(int i) {
System.out.println(" bark: " + i);
switch (i) {
case 0:
throw new IllegalArgumentException("IllegalArgumentException");
case 1:
throw new ArithmeticException("ArithmeticException");
case 2:
throw new IllegalMonitorStateException("IllegalMonitorStateException");
case 3:
throw new IndexOutOfBoundsException("IndexOutOfBoundsException");
default:
throw new Error("should not happen");
}
System.out.println(" bark: " + i);
switch (i) {
case 0:
throw new IllegalArgumentException("IllegalArgumentException");
case 1:
throw new ArithmeticException("ArithmeticException");
case 2:
throw new IllegalMonitorStateException("IllegalMonitorStateException");
case 3:
throw new IndexOutOfBoundsException("IndexOutOfBoundsException");
default:
throw new Error("should not happen");
}
}
public void loop(int max) {
for (int i = 0; i <= max; i++) {
try {
bark(i);
} catch(RuntimeException re) {
System.out.println(" loop: " + re.getMessage() +
" caught and ignored.");
}
}
for (int i = 0; i <= max; i++) {
try {
bark(i);
} catch(RuntimeException re) {
System.out.println(" loop: " + re.getMessage() +
" caught and ignored.");
}
}
}
public void partOne() {
loop(2);
System.out.println("partOne completed");
System.out.println("partOne completed");
}
public void partTwo() {
loop(3);
System.out.println("partTwo completed");
System.out.println("partTwo completed");
}
public static void main(String[] args) {
System.out.println("Howdy!");
System.out.println("Howdy!");
$classname
my = new
$classname
();
my.partOne();
my.partTwo();
System.out.println("Goodbye from
$classname
!");
my.partOne();
my.partTwo();
System.out.println("Goodbye from
$classname
!");
}
}
EOF
...
...
test/com/sun/jdi/GetLocalVariables4Test.sh
浏览文件 @
4a24cc68
...
...
@@ -39,12 +39,12 @@ createJavaFile()
public class GetLocalVariables4Targ {
public static void main(String[] args) {
System.out.println("Howdy!");
int i = 0;
try {
i = 16 / i;
} catch(Exception e) {
System.out.println("e should be visible"); // @1 breakpoint
}
int i = 0;
try {
i = 16 / i;
} catch(Exception e) {
System.out.println("e should be visible"); // @1 breakpoint
}
System.out.println("Goodbye from GetLocalVariables4Targ!");
}
}
...
...
test/com/sun/jdi/JdbReadTwiceTest.sh
浏览文件 @
4a24cc68
...
...
@@ -219,7 +219,7 @@ if [ ! -r c:/ ] ; then
echo
"Unable to make file unreadable, so test will fail. chmod:
$HOME
/jdb.ini"
if
grep
-q
"uid=0"
$HOME
/jdb.ini
;
then
echo
"The test is running as root. Fix infrastructure!"
fi
fi
fi
doit
failIfNot 1
"open:
$HOME
/jdb.ini"
...
...
test/com/sun/jdi/NullLocalVariable.sh
浏览文件 @
4a24cc68
...
...
@@ -40,10 +40,10 @@ public class badscope {
public static final void main(String args[]) {
try {
System.out.println("hi!"); // @1 breakpoint
} catch (Exception e) {
} catch (Exception e) {
e.printStackTrace();
} finally {
System.out.println("done");
System.out.println("done");
}
}
}
...
...
@@ -54,11 +54,11 @@ EOF
dojdbCmds
()
{
#set -x
cmd stop at badscope:4
;
$sleepcmd
runToBkpt
;
$sleepcmd
cmd next
;
$sleepcmd
cmd next
;
$sleepcmd
cmd locals
;
$sleepcmd
cmd stop at badscope:4
;
$sleepcmd
runToBkpt
;
$sleepcmd
cmd next
;
$sleepcmd
cmd next
;
$sleepcmd
cmd locals
;
$sleepcmd
cmd cont
}
...
...
@@ -71,7 +71,7 @@ mysetup()
for
ii
in
.
$TESTSRC
$TESTSRC
/..
;
do
if
[
-r
"
$ii
/ShellScaffold.sh"
]
;
then
.
$ii
/ShellScaffold.sh
.
$ii
/ShellScaffold.sh
break
fi
done
...
...
test/com/sun/jdi/PrivateTransportTest.sh
浏览文件 @
4a24cc68
...
...
@@ -67,9 +67,9 @@ if [ -z "${TESTJAVA}" ] ; then
# is given on the command line, tell the user that and use a default.
# THIS IS THE JDK BEING TESTED.
if
[
-n
"
$1
"
]
;
then
TESTJAVA
=
$1
TESTJAVA
=
$1
else
TESTJAVA
=
$JAVA_HOME
TESTJAVA
=
$JAVA_HOME
fi
TESTSRC
=
.
TESTCLASSES
=
.
...
...
test/com/sun/jdi/RedefineFinal.sh
浏览文件 @
4a24cc68
...
...
@@ -42,15 +42,15 @@ createJavaFile()
public final class
$1
{
public int m1(int i) {
// @1 uncomment System.out.println("I'm here");
return m2(i, 1000);
// @1 uncomment System.out.println("I'm here");
return m2(i, 1000);
}
public int m2(int i, int j) {
if (i < 0 || j < 0) {
// @1 breakpoint
if (i < 0 || j < 0) {
// @1 breakpoint
throw new IllegalArgumentException();
}
return i+j;
}
return i+j;
}
$1
() {
...
...
@@ -59,7 +59,7 @@ public final class $1 {
}
public static void main(String args[]) {
new
$1
();
new
$1
();
}
}
EOF
...
...
test/com/sun/jdi/RedefineIntConstantToLong.sh
浏览文件 @
4a24cc68
...
...
@@ -44,18 +44,18 @@ public final class $1 {
public long m1(int i) {
long r=0;
r = m2(i * 2); // @1 commentout
// @1 uncomment r =m2(i * 2L);
// @1 uncomment r =m2(i * 2L);
return r;
}
public long m2(int j) {
System.out.println(System.getProperty("line.separator") +
System.out.println(System.getProperty("line.separator") +
"**** public long m2(int j) with value: " + j);
return j;
}
public long m2(long j) {
System.out.println(System.getProperty("line.separator") +
System.out.println(System.getProperty("line.separator") +
"**** public long m2(long j) with value: " + j);
return j;
}
...
...
@@ -66,7 +66,7 @@ public final class $1 {
r1 = m1(1000);
r2 = 0; // @1 breakpoint
r2 = m1(1000);
if (r1 != r2) {
// @1 breakpoint
if (r1 != r2) {
// @1 breakpoint
throw new Exception("FAILURE: Expected value: " + r1 + " Actual value: " + r2);
} else {
System.out.println("SUCCESS: Expected value: " + r1 + " Actual value: " + r2);
...
...
@@ -74,7 +74,7 @@ public final class $1 {
}
public static void main(String args[]) throws Exception {
new
$1
().doit();
new
$1
().doit();
}
}
EOF
...
...
test/com/sun/jdi/StringConvertTest.sh
浏览文件 @
4a24cc68
...
...
@@ -23,7 +23,7 @@
# questions.
#
# @test
@(#)StringConvertTest.sh 1.6 03/04/09
# @test
# @bug 4511950 4843082
# @summary 1. jdb's expression evaluation doesn't perform string conversion properly
# 2. TTY: run on expression evaluation
...
...
test/com/sun/jdi/SuspendNoFlagTest.sh
浏览文件 @
4a24cc68
...
...
@@ -68,9 +68,9 @@ if [ -z "${TESTJAVA}" ] ; then
# is given on the command line, tell the user that and use a default.
# THIS IS THE JDK BEING TESTED.
if
[
-n
"
$1
"
]
;
then
TESTJAVA
=
$1
TESTJAVA
=
$1
else
TESTJAVA
=
$JAVA_HOME
TESTJAVA
=
$JAVA_HOME
fi
TESTSRC
=
.
TESTCLASSES
=
.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录