Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
af619506
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看板
提交
af619506
编写于
3月 25, 2008
作者:
A
ant
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
90585e04
50fbc85c
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
75 addition
and
22 deletion
+75
-22
src/share/classes/java/awt/event/TextEvent.java
src/share/classes/java/awt/event/TextEvent.java
+1
-2
src/share/classes/java/awt/event/TextListener.java
src/share/classes/java/awt/event/TextListener.java
+1
-2
src/windows/native/sun/windows/awt_Dialog.cpp
src/windows/native/sun/windows/awt_Dialog.cpp
+7
-3
src/windows/native/sun/windows/awt_Window.cpp
src/windows/native/sun/windows/awt_Window.cpp
+1
-9
src/windows/native/sun/windows/awt_Window.h
src/windows/native/sun/windows/awt_Window.h
+1
-6
test/java/awt/Dialog/CrashXCheckJni/CrashXCheckJni.java
test/java/awt/Dialog/CrashXCheckJni/CrashXCheckJni.java
+64
-0
未找到文件。
src/share/classes/java/awt/event/TextEvent.java
浏览文件 @
af619506
/*
* Copyright 1996-200
7
Sun Microsystems, Inc. All Rights Reserved.
* Copyright 1996-200
8
Sun Microsystems, Inc. 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
...
...
@@ -43,7 +43,6 @@ import java.awt.AWTEvent;
*
* @see java.awt.TextComponent
* @see TextListener
* @see <a href="http://java.sun.com/docs/books/tutorial/post1.0/ui/textlistener.html">Tutorial: Writing a Text Listener</a>
*
* @since 1.1
*/
...
...
src/share/classes/java/awt/event/TextListener.java
浏览文件 @
af619506
/*
* Copyright 1996-200
6
Sun Microsystems, Inc. All Rights Reserved.
* Copyright 1996-200
8
Sun Microsystems, Inc. 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
...
...
@@ -40,7 +40,6 @@ import java.util.EventListener;
* @author Georges Saab
*
* @see TextEvent
* @see <a href="http://java.sun.com/docs/books/tutorial/post1.0/ui/textlistener.html">Tutorial: Writing a Text Listener</a>
*
* @since 1.1
*/
...
...
src/windows/native/sun/windows/awt_Dialog.cpp
浏览文件 @
af619506
/*
* Copyright 1996-200
7
Sun Microsystems, Inc. All Rights Reserved.
* Copyright 1996-200
8
Sun Microsystems, Inc. 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
...
...
@@ -428,8 +428,12 @@ void AwtDialog::ModalActivateNextWindow(HWND dialogHWnd,
{
JNIEnv
*
env
=
(
JNIEnv
*
)
JNU_GetEnv
(
jvm
,
JNI_VERSION_1_2
);
jlongArray
windows
=
(
jlongArray
)(
env
->
CallStaticObjectMethod
(
AwtWindow
::
wwindowPeerCls
,
AwtWindow
::
getActiveWindowsMID
));
jclass
wwindowPeerCls
=
env
->
FindClass
(
"sun/awt/windows/WWindowPeer"
);
jmethodID
getActiveWindowsMID
=
env
->
GetStaticMethodID
(
wwindowPeerCls
,
"getActiveWindowHandles"
,
"()[J"
);
DASSERT
(
getActiveWindowsMID
!=
NULL
);
jlongArray
windows
=
(
jlongArray
)(
env
->
CallStaticObjectMethod
(
wwindowPeerCls
,
getActiveWindowsMID
));
if
(
windows
==
NULL
)
{
return
;
}
...
...
src/windows/native/sun/windows/awt_Window.cpp
浏览文件 @
af619506
/*
* Copyright 1996-200
7
Sun Microsystems, Inc. All Rights Reserved.
* Copyright 1996-200
8
Sun Microsystems, Inc. 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
...
...
@@ -122,9 +122,6 @@ jfieldID AwtWindow::warningStringID;
jfieldID
AwtWindow
::
locationByPlatformID
;
jfieldID
AwtWindow
::
autoRequestFocusID
;
jclass
AwtWindow
::
wwindowPeerCls
;
jmethodID
AwtWindow
::
getActiveWindowsMID
;
jfieldID
AwtWindow
::
sysXID
;
jfieldID
AwtWindow
::
sysYID
;
jfieldID
AwtWindow
::
sysWID
;
...
...
@@ -2159,11 +2156,6 @@ Java_sun_awt_windows_WWindowPeer_initIDs(JNIEnv *env, jclass cls)
{
TRY
;
AwtWindow
::
wwindowPeerCls
=
cls
;
AwtWindow
::
getActiveWindowsMID
=
env
->
GetStaticMethodID
(
cls
,
"getActiveWindowHandles"
,
"()[J"
);
DASSERT
(
AwtWindow
::
getActiveWindowsMID
!=
NULL
);
AwtWindow
::
sysXID
=
env
->
GetFieldID
(
cls
,
"sysX"
,
"I"
);
AwtWindow
::
sysYID
=
env
->
GetFieldID
(
cls
,
"sysY"
,
"I"
);
AwtWindow
::
sysWID
=
env
->
GetFieldID
(
cls
,
"sysW"
,
"I"
);
...
...
src/windows/native/sun/windows/awt_Window.h
浏览文件 @
af619506
/*
* Copyright 1996-200
7
Sun Microsystems, Inc. All Rights Reserved.
* Copyright 1996-200
8
Sun Microsystems, Inc. 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
...
...
@@ -57,11 +57,6 @@ public:
static
jfieldID
screenID
;
/* screen number passed over from WindowPeer */
static
jfieldID
autoRequestFocusID
;
/* WWindowPeer class */
static
jclass
wwindowPeerCls
;
/* long[] getActiveWindowHandles() method in WWindowPeer */
static
jmethodID
getActiveWindowsMID
;
// The coordinates at the peer.
static
jfieldID
sysXID
;
static
jfieldID
sysYID
;
...
...
test/java/awt/Dialog/CrashXCheckJni/CrashXCheckJni.java
0 → 100644
浏览文件 @
af619506
/*
* Copyright 2008 Sun Microsystems, Inc. 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
/*
@test
@bug 6610244
@library ../../regtesthelpers
@build Util Sysout AbstractTest
@summary modal dialog closes with fatal error if -Xcheck:jni is set
@author Andrei Dmitriev : area=awt.dialog
@run main/othervm -Xcheck:jni CrashXCheckJni
*/
import
java.awt.*
;
import
java.awt.event.*
;
import
java.util.Timer
;
import
java.util.TimerTask
;
import
test.java.awt.regtesthelpers.Util
;
import
test.java.awt.regtesthelpers.AbstractTest
;
import
test.java.awt.regtesthelpers.Sysout
;
public
class
CrashXCheckJni
{
public
static
void
main
(
String
[]
s
)
{
final
Dialog
fd
=
new
Dialog
(
new
Frame
(),
true
);
Timer
t
=
new
Timer
();
t
.
schedule
(
new
TimerTask
()
{
public
void
run
()
{
System
.
out
.
println
(
"RUNNING TASK"
);
fd
.
setVisible
(
false
);
fd
.
dispose
();
System
.
out
.
println
(
"FINISHING TASK"
);
}
},
3000L
);
fd
.
setVisible
(
true
);
t
.
cancel
();
Util
.
waitForIdle
(
null
);
AbstractTest
.
pass
();
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录