Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
76b415d2
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
3
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
76b415d2
编写于
12月 14, 2017
作者:
A
asaha
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
0eb149cf
4038cf93
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
114 addition
and
3 deletion
+114
-3
.hgtags
.hgtags
+4
-0
src/windows/classes/sun/awt/windows/WInputMethod.java
src/windows/classes/sun/awt/windows/WInputMethod.java
+4
-1
src/windows/native/sun/windows/awt_Component.cpp
src/windows/native/sun/windows/awt_Component.cpp
+6
-0
test/javax/swing/JFrame/AlwaysOnTop/AlwaysOnTopImeTest.java
test/javax/swing/JFrame/AlwaysOnTop/AlwaysOnTopImeTest.java
+60
-0
test/javax/xml/ws/8159058/SaajEmptyNamespaceTest.java
test/javax/xml/ws/8159058/SaajEmptyNamespaceTest.java
+40
-2
未找到文件。
.hgtags
浏览文件 @
76b415d2
...
...
@@ -772,6 +772,10 @@ f5f32c0208a09a78185dad1baf7793bf84fb8356 jdk8u152-b13
50047f057dc14fa5e08e2b449304a21889e4079a jdk8u152-b14
bfd67d7c7d41b320225d5502cec55c6b38cdaa6d jdk8u152-b15
1cb70967c4d78a45a60d0d6eb64cb7fbe89ad005 jdk8u152-b16
9dce8b2a03e056c54789c555176bd2c8a48b844f jdk8u152-b31
5f0349b6341cf96a478ea14ee820af26fe190e36 jdk8u152-b32
4c18aa8f0bc0eb78ed02863e465867804415a931 jdk8u152-b33
dcd2081a3118944dc2bd8e00f92dead20ade495f jdk8u152-b34
072e084bceeedeb75467e40ca77786ac9ef5227a jdk8u151-b00
5b0fa6e004312a5910a6a70e4fbc0f00a678e650 jdk8u151-b01
bd40efd56b4544ff9048d2f7be4cf108b281a6f3 jdk8u151-b02
...
...
src/windows/classes/sun/awt/windows/WInputMethod.java
浏览文件 @
76b415d2
/*
* Copyright (c) 1997, 201
4
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 201
7
, 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
...
...
@@ -584,6 +584,9 @@ final class WInputMethod extends InputMethodAdapter
Component
client
=
getClientComponent
();
if
(
client
!=
null
)
{
if
(!
client
.
isShowing
())
{
return
;
}
if
(
haveActiveClient
())
{
Rectangle
rc
=
inputContext
.
getTextLocation
(
TextHitInfo
.
leading
(
0
));
x
=
rc
.
x
;
...
...
src/windows/native/sun/windows/awt_Component.cpp
浏览文件 @
76b415d2
...
...
@@ -3779,6 +3779,9 @@ void AwtComponent::OpenCandidateWindow(int x, int y)
UINT
bits
=
1
;
POINT
p
=
{
0
,
0
};
// upper left corner of the client area
HWND
hWnd
=
GetHWnd
();
if
(
!::
IsWindowVisible
(
hWnd
))
{
return
;
}
HWND
hTop
=
GetTopLevelParentForWindow
(
hWnd
);
::
ClientToScreen
(
hTop
,
&
p
);
if
(
!
m_bitsCandType
)
{
...
...
@@ -4053,6 +4056,9 @@ void AwtComponent::SendInputMethodEvent(jint id, jstring text,
//
void
AwtComponent
::
InquireCandidatePosition
()
{
if
(
!::
IsWindowVisible
(
GetHWnd
()))
{
return
;
}
JNIEnv
*
env
=
(
JNIEnv
*
)
JNU_GetEnv
(
jvm
,
JNI_VERSION_1_2
);
// get global reference of WInputMethod class (run only once)
...
...
test/javax/swing/JFrame/AlwaysOnTop/AlwaysOnTopImeTest.java
0 → 100644
浏览文件 @
76b415d2
/*
* Copyright (c) 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
* 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 Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
* @test
* @bug 8179665
* @summary [Windows] java.awt.IllegalComponentStateException: component must
* be showing on the screen to determine its location
* @run main AlwaysOnTopImeTest
*/
import
javax.swing.*
;
import
java.awt.*
;
public
class
AlwaysOnTopImeTest
{
private
static
JDialog
d
;
private
static
JFrame
f
;
public
static
void
main
(
String
[]
args
)
throws
Exception
{
SwingUtilities
.
invokeLater
(()
->
{
f
=
new
JFrame
();
f
.
setVisible
(
true
);
d
=
new
JDialog
(
f
);
d
.
add
(
new
JTextField
());
d
.
pack
();
d
.
setModal
(
true
);
f
.
setAlwaysOnTop
(
true
);
d
.
setVisible
(
true
);
f
.
setAlwaysOnTop
(
false
);
});
Robot
robot
=
new
Robot
();
robot
.
waitForIdle
();
robot
.
delay
(
200
);
SwingUtilities
.
invokeAndWait
(()
->
d
.
setVisible
(
false
));
robot
.
waitForIdle
();
robot
.
delay
(
200
);
SwingUtilities
.
invokeLater
(
f:
:
dispose
);
}
}
test/javax/xml/ws/8159058/SaajEmptyNamespaceTest.java
浏览文件 @
76b415d2
...
...
@@ -23,7 +23,7 @@
/*
* @test
* @bug 8159058
* @bug 8159058
8186441
* @summary Test that empty default namespace declaration clears the
* default namespace value
* @compile -XDignore.symbol.file SaajEmptyNamespaceTest.java
...
...
@@ -58,6 +58,26 @@ import org.w3c.dom.Node;
public
class
SaajEmptyNamespaceTest
{
/*
* Test that SOAP reader doesn't move namespaces declarations to SOAP body element
* as reported in JDK-8186441
*/
@Test
public
void
testPreserveNamespacesPosition
()
throws
Exception
{
// Create SOAP message from XML string and process it with SAAJ reader
XMLStreamReader
envelope
=
XMLInputFactory
.
newFactory
().
createXMLStreamReader
(
new
StringReader
(
INPUT_SOAP_MESSAGE_2
));
StreamMessage
streamMessage
=
new
StreamMessage
(
SOAPVersion
.
SOAP_11
,
envelope
,
null
);
SAAJFactory
saajFact
=
new
SAAJFactory
();
SOAPMessage
soapMessage
=
saajFact
.
readAsSOAPMessage
(
SOAPVersion
.
SOAP_11
,
streamMessage
);
//Get SOAP body and convert it to string representation
SOAPBody
body
=
soapMessage
.
getSOAPBody
();
String
bodyAsString
=
nodeToText
(
body
);
Assert
.
assertEquals
(
bodyAsString
,
PRESERVE_NAMESPACES_EXPECTED_RESULT
);
}
/*
* Test that SOAP message with default namespace declaration that contains empty
* string is properly processed by SAAJ reader.
...
...
@@ -273,10 +293,28 @@ public class SaajEmptyNamespaceTest {
// Expected body content after SAAJ processing
private
static
String
EXPECTED_RESULT
=
"<SampleServiceRequest"
+
" xmlns=\"http://example.org/test\">"
+
" xmlns=\"http://example.org/test\""
+
" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">"
+
"<RequestParams xmlns=\"\">"
+
"<Param1>hogehoge</Param1>"
+
"<Param2>fugafuga</Param2>"
+
"</RequestParams>"
+
"</SampleServiceRequest>"
;
private
static
String
PRESERVE_NAMESPACES_EXPECTED_RESULT
=
"<s:Body xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\">"
+
"<Request xmlns=\"http://example.org/NS_1\">"
+
"<Item><Contact xmlns=\"http://example.org/NS_2\">Test_Contact</Contact>"
+
"</Item></Request></s:Body>"
;
private
static
String
INPUT_SOAP_MESSAGE_2
=
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
+
"<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\">"
+
"<s:Body>"
+
"<Request xmlns=\"http://example.org/NS_1\">"
+
"<Item>"
+
"<Contact xmlns=\"http://example.org/NS_2\">Test_Contact</Contact>"
+
"</Item>"
+
"</Request>"
+
"</s:Body>"
+
"</s:Envelope>"
;
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录