Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
73c6f8a0
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看板
提交
73c6f8a0
编写于
6月 28, 2010
作者:
A
asaha
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
cd2f7acc
cea441e6
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
42 addition
and
33 deletion
+42
-33
make/common/Release.gmk
make/common/Release.gmk
+0
-2
src/share/classes/sun/net/www/protocol/http/HttpURLConnection.java
.../classes/sun/net/www/protocol/http/HttpURLConnection.java
+1
-1
test/ProblemList.txt
test/ProblemList.txt
+0
-3
test/java/net/Authenticator/B4769350.java
test/java/net/Authenticator/B4769350.java
+4
-1
test/java/net/BindException/Test.java
test/java/net/BindException/Test.java
+1
-1
test/java/net/ipv6tests/Tests.java
test/java/net/ipv6tests/Tests.java
+2
-1
test/java/nio/channels/FileChannel/Transfer.java
test/java/nio/channels/FileChannel/Transfer.java
+34
-24
未找到文件。
make/common/Release.gmk
浏览文件 @
73c6f8a0
...
...
@@ -549,7 +549,6 @@ DIRDIFF_JARFILE = $(BUILDTOOLJARDIR)/dirdiff.jar
######################################################
# List of directories in classes directory that should NOT be in rt.jar
# sun/nio/cs/ext/ will go into charsets.jar
######################################################
NOT_RT_JAR_LIST = $(ABS_TEMPDIR)/not_rt_jar.list
...
...
@@ -572,7 +571,6 @@ $(NOT_RT_JAR_LIST): FRC
$(ECHO) "META-INF/services/com.sun.tools.xjc.Plugin" >> $@
$(ECHO) "com/sun/tools/" >> $@
$(ECHO) "sun/jvmstat/" >> $@
$(ECHO) "sun/nio/cs/ext/" >> $@
$(ECHO) "sun/rmi/rmic/" >> $@
$(ECHO) "sun/tools/asm/" >> $@
$(ECHO) "sun/tools/java/" >> $@
...
...
src/share/classes/sun/net/www/protocol/http/HttpURLConnection.java
浏览文件 @
73c6f8a0
...
...
@@ -2331,7 +2331,7 @@ public class HttpURLConnection extends java.net.HttpURLConnection {
* closed the connection to the web server.
*/
private
void
disconnectWeb
()
throws
IOException
{
if
(
usingProxy
())
{
if
(
usingProxy
()
&&
http
.
isKeepingAlive
()
)
{
responseCode
=
-
1
;
// clean up, particularly, skip the content part
// of a 401 error response
...
...
test/ProblemList.txt
浏览文件 @
73c6f8a0
...
...
@@ -379,9 +379,6 @@ sun/net/www/http/KeepAliveStream/KeepAliveStreamCloseWithWrongContentLength.java
# Interrupted or IO exception, maybe writing to non-unique named file?
com/sun/net/httpserver/bugs/B6373555.java generic-all
# Fails on OpenSolaris, BindException unexpected
java/net/BindException/Test.java generic-all
# Fails on OpenSolaris, times out
java/net/MulticastSocket/SetOutgoingIf.java generic-all
...
...
test/java/net/Authenticator/B4769350.java
浏览文件 @
73c6f8a0
...
...
@@ -54,6 +54,7 @@ public class B4769350 {
boolean
allowerror
;
Client
(
String
authority
,
String
path
,
boolean
allowerror
)
{
super
(
"Thread-"
+
path
);
this
.
authority
=
authority
;
this
.
path
=
path
;
this
.
allowerror
=
allowerror
;
...
...
@@ -72,7 +73,8 @@ public class B4769350 {
error
=
true
;
}
catch
(
IOException
e
)
{
if
(!
allowerror
)
{
System
.
out
.
println
(
e
);
System
.
out
.
println
(
Thread
.
currentThread
().
getName
()
+
" "
+
e
);
e
.
printStackTrace
();
error
=
true
;
}
}
...
...
@@ -94,6 +96,7 @@ public class B4769350 {
}
void
okReply
(
HttpTransaction
req
)
throws
IOException
{
req
.
addResponseHeader
(
"Connection"
,
"close"
);
req
.
setResponseEntityBody
(
"Hello ."
);
req
.
sendResponse
(
200
,
"Ok"
);
req
.
orderlyClose
();
...
...
test/java/net/BindException/Test.java
浏览文件 @
73c6f8a0
...
...
@@ -180,7 +180,7 @@ public class Test {
while
(
addrs
.
hasMoreElements
())
{
InetAddress
ia
=
(
InetAddress
)
addrs
.
nextElement
();
if
(
ia
.
isLoopbackAddress
())
{
if
(
ia
.
isLoopbackAddress
()
||
ia
.
isAnyLocalAddress
()
)
{
continue
;
}
...
...
test/java/net/ipv6tests/Tests.java
浏览文件 @
73c6f8a0
...
...
@@ -248,7 +248,8 @@ public class Tests {
}
while
(
addrs
.
hasMoreElements
())
{
InetAddress
addr
=
(
InetAddress
)
addrs
.
nextElement
();
if
(
filter
.
isInstance
(
addr
)
&&
!
addr
.
isLoopbackAddress
())
{
if
(
filter
.
isInstance
(
addr
)
&&
!
addr
.
isLoopbackAddress
()
&&
!
addr
.
isAnyLocalAddress
())
{
if
(
Arrays
.
equals
(
addr
.
getAddress
(),
fe80_loopback
))
{
continue
;
}
...
...
test/java/nio/channels/FileChannel/Transfer.java
浏览文件 @
73c6f8a0
...
...
@@ -25,7 +25,6 @@
* @bug 4434723 4482726 4559072 4638365 4795550 5081340 5103988 6253145
* @summary Test FileChannel.transferFrom and transferTo
* @library ..
* @run main/timeout=240 Transfer
*/
import
java.io.*
;
...
...
@@ -33,6 +32,8 @@ import java.net.*;
import
java.nio.*
;
import
java.nio.channels.*
;
import
java.nio.channels.spi.SelectorProvider
;
import
java.nio.file.StandardOpenOption
;
import
java.nio.file.FileAlreadyExistsException
;
import
java.util.Random
;
...
...
@@ -262,23 +263,30 @@ public class Transfer {
// Test transferFrom with large file
public
static
void
xferTest05
()
throws
Exception
{
// Linux can't handle the really large file sizes for a
// truncate or a positional write
String
osName
=
System
.
getProperty
(
"os.name"
);
if
(
osName
.
startsWith
(
"Linux"
))
return
;
// Create a source file & large sink file for the test
File
source
=
File
.
createTempFile
(
"blech"
,
null
);
source
.
deleteOnExit
();
initTestFile
(
source
,
100
);
File
sink
=
File
.
createTempFile
(
"sink"
,
null
);
// Create the sink file as a sparse file if possible
File
sink
=
null
;
FileChannel
fc
=
null
;
while
(
fc
==
null
)
{
sink
=
File
.
createTempFile
(
"sink"
,
null
);
// re-create as a sparse file
sink
.
toPath
().
delete
();
try
{
fc
=
FileChannel
.
open
(
sink
.
toPath
(),
StandardOpenOption
.
CREATE_NEW
,
StandardOpenOption
.
WRITE
,
StandardOpenOption
.
SPARSE
);
}
catch
(
FileAlreadyExistsException
ignore
)
{
// someone else got it
}
}
sink
.
deleteOnExit
();
long
testSize
=
((
long
)
Integer
.
MAX_VALUE
)
*
2
;
RandomAccessFile
raf
=
new
RandomAccessFile
(
sink
,
"rw"
);
FileChannel
fc
=
raf
.
getChannel
();
try
{
fc
.
write
(
ByteBuffer
.
wrap
(
"Use the source!"
.
getBytes
()),
testSize
-
40
);
...
...
@@ -288,24 +296,26 @@ public class Transfer {
return
;
}
finally
{
fc
.
close
();
raf
.
close
();
}
// Get new channels for the source and sink and attempt transfer
FileInputStream
fis
=
new
FileInputStream
(
source
);
FileChannel
sourceChannel
=
fis
.
getChannel
();
raf
=
new
RandomAccessFile
(
sink
,
"rw"
);
FileChannel
sinkChannel
=
raf
.
getChannel
();
long
bytesWritten
=
sinkChannel
.
transferFrom
(
sourceChannel
,
testSize
-
40
,
10
);
if
(
bytesWritten
!=
10
)
{
throw
new
RuntimeException
(
"Transfer test 5 failed "
+
bytesWritten
);
FileChannel
sourceChannel
=
new
FileInputStream
(
source
).
getChannel
();
try
{
FileChannel
sinkChannel
=
new
RandomAccessFile
(
sink
,
"rw"
).
getChannel
();
try
{
long
bytesWritten
=
sinkChannel
.
transferFrom
(
sourceChannel
,
testSize
-
40
,
10
);
if
(
bytesWritten
!=
10
)
{
throw
new
RuntimeException
(
"Transfer test 5 failed "
+
bytesWritten
);
}
}
finally
{
sinkChannel
.
close
();
}
}
finally
{
sourceChannel
.
close
();
}
sourceChannel
.
close
();
sinkChannel
.
close
();
source
.
delete
();
sink
.
delete
();
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录