Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
2344f775
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看板
提交
2344f775
编写于
10月 10, 2013
作者:
M
michaelm
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
7076487: (sctp) SCTP API classes does not exist in JDK for Mac
Reviewed-by: alanb, chegar
上级
c6407fec
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
393 addition
and
6 deletion
+393
-6
makefiles/CompileJavaClasses.gmk
makefiles/CompileJavaClasses.gmk
+4
-1
makefiles/CreateJars.gmk
makefiles/CreateJars.gmk
+0
-5
src/macosx/classes/sun/nio/ch/sctp/SctpChannelImpl.java
src/macosx/classes/sun/nio/ch/sctp/SctpChannelImpl.java
+150
-0
src/macosx/classes/sun/nio/ch/sctp/SctpMultiChannelImpl.java
src/macosx/classes/sun/nio/ch/sctp/SctpMultiChannelImpl.java
+137
-0
src/macosx/classes/sun/nio/ch/sctp/SctpServerChannelImpl.java
...macosx/classes/sun/nio/ch/sctp/SctpServerChannelImpl.java
+102
-0
未找到文件。
makefiles/CompileJavaClasses.gmk
浏览文件 @
2344f775
...
...
@@ -268,7 +268,10 @@ ifeq ($(OPENJDK_TARGET_OS),macosx)
$(JDK_TOPDIR)/src/solaris/classes/java/net/DefaultInterface.java \
$(JDK_TOPDIR)/src/solaris/classes/java/lang/ClassLoaderHelper.java \
$(JDK_TOPDIR)/src/solaris/classes/sun/util/locale/provider/HostLocaleProviderAdapterImpl.java \
$(JDK_TOPDIR)/src/solaris/classes/sun/nio/fs/GnomeFileTypeDetector.java
$(JDK_TOPDIR)/src/solaris/classes/sun/nio/fs/GnomeFileTypeDetector.java \
$(JDK_TOPDIR)/src/solaris/classes/sun/nio/ch/sctp/SctpChannelImpl.java \
$(JDK_TOPDIR)/src/solaris/classes/sun/nio/ch/sctp/SctpMultiChannelImpl.java \
$(JDK_TOPDIR)/src/solaris/classes/sun/nio/ch/sctp/SctpServerChannelImpl.java
# JObjC.jar contains 1.5 byte-code...so skip it here :-(
# MACOSX_SRC_DIRS += $(JDK_TOPDIR)/src/macosx/native/jobjc/src
...
...
makefiles/CreateJars.gmk
浏览文件 @
2344f775
...
...
@@ -216,11 +216,6 @@ RT_JAR_EXCLUDES += \
oracle/jrockit/jfr \
jdk/jfr
ifeq ($(OPENJDK_TARGET_OS), macosx)
RT_JAR_EXCLUDES += com/sun/nio/sctp \
sun/nio/ch/sctp
endif
# Find all files in the classes dir to use as dependencies. This could be more fine granular.
ALL_FILES_IN_CLASSES := $(call not-containing,_the.,$(filter-out %javac_state,\
$(call CacheFind,$(JDK_OUTPUTDIR)/classes)))
...
...
src/macosx/classes/sun/nio/ch/sctp/SctpChannelImpl.java
0 → 100644
浏览文件 @
2344f775
/*
* Copyright (c) 2009, 2012, 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. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* 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.
*/
package
sun.nio.ch.sctp
;
import
java.net.SocketAddress
;
import
java.net.InetAddress
;
import
java.io.IOException
;
import
java.util.Set
;
import
java.nio.ByteBuffer
;
import
java.nio.channels.spi.SelectorProvider
;
import
com.sun.nio.sctp.Association
;
import
com.sun.nio.sctp.MessageInfo
;
import
com.sun.nio.sctp.NotificationHandler
;
import
com.sun.nio.sctp.SctpChannel
;
import
com.sun.nio.sctp.SctpSocketOption
;
/**
* Unimplemented.
*/
public
class
SctpChannelImpl
extends
SctpChannel
{
private
static
final
String
message
=
"SCTP not supported on this platform"
;
public
SctpChannelImpl
(
SelectorProvider
provider
)
{
super
(
provider
);
throw
new
UnsupportedOperationException
(
message
);
}
@Override
public
Association
association
()
{
throw
new
UnsupportedOperationException
(
message
);
}
@Override
public
SctpChannel
bind
(
SocketAddress
local
)
throws
IOException
{
throw
new
UnsupportedOperationException
(
message
);
}
@Override
public
SctpChannel
bindAddress
(
InetAddress
address
)
throws
IOException
{
throw
new
UnsupportedOperationException
(
message
);
}
@Override
public
SctpChannel
unbindAddress
(
InetAddress
address
)
throws
IOException
{
throw
new
UnsupportedOperationException
(
message
);
}
@Override
public
boolean
connect
(
SocketAddress
remote
)
throws
IOException
{
throw
new
UnsupportedOperationException
(
message
);
}
@Override
public
boolean
connect
(
SocketAddress
remote
,
int
maxOutStreams
,
int
maxInStreams
)
throws
IOException
{
throw
new
UnsupportedOperationException
(
message
);
}
@Override
public
boolean
isConnectionPending
()
{
throw
new
UnsupportedOperationException
(
message
);
}
@Override
public
boolean
finishConnect
()
throws
IOException
{
throw
new
UnsupportedOperationException
(
message
);
}
@Override
public
Set
<
SocketAddress
>
getAllLocalAddresses
()
throws
IOException
{
throw
new
UnsupportedOperationException
(
message
);
}
@Override
public
Set
<
SocketAddress
>
getRemoteAddresses
()
throws
IOException
{
throw
new
UnsupportedOperationException
(
message
);
}
@Override
public
SctpChannel
shutdown
()
throws
IOException
{
throw
new
UnsupportedOperationException
(
message
);
}
@Override
public
<
T
>
T
getOption
(
SctpSocketOption
<
T
>
name
)
throws
IOException
{
throw
new
UnsupportedOperationException
(
message
);
}
@Override
public
<
T
>
SctpChannel
setOption
(
SctpSocketOption
<
T
>
name
,
T
value
)
throws
IOException
{
throw
new
UnsupportedOperationException
(
message
);
}
@Override
public
Set
<
SctpSocketOption
<?>>
supportedOptions
()
{
throw
new
UnsupportedOperationException
(
message
);
}
@Override
public
<
T
>
MessageInfo
receive
(
ByteBuffer
dst
,
T
attachment
,
NotificationHandler
<
T
>
handler
)
throws
IOException
{
throw
new
UnsupportedOperationException
(
message
);
}
@Override
public
int
send
(
ByteBuffer
src
,
MessageInfo
messageInfo
)
throws
IOException
{
throw
new
UnsupportedOperationException
(
message
);
}
@Override
protected
void
implConfigureBlocking
(
boolean
block
)
throws
IOException
{
throw
new
UnsupportedOperationException
(
message
);
}
@Override
public
void
implCloseSelectableChannel
()
throws
IOException
{
throw
new
UnsupportedOperationException
(
message
);
}
}
src/macosx/classes/sun/nio/ch/sctp/SctpMultiChannelImpl.java
0 → 100644
浏览文件 @
2344f775
/*
* Copyright (c) 2009, 2012, 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. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* 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.
*/
package
sun.nio.ch.sctp
;
import
java.net.SocketAddress
;
import
java.net.InetAddress
;
import
java.io.IOException
;
import
java.util.Set
;
import
java.nio.ByteBuffer
;
import
java.nio.channels.spi.SelectorProvider
;
import
com.sun.nio.sctp.Association
;
import
com.sun.nio.sctp.SctpChannel
;
import
com.sun.nio.sctp.MessageInfo
;
import
com.sun.nio.sctp.NotificationHandler
;
import
com.sun.nio.sctp.SctpMultiChannel
;
import
com.sun.nio.sctp.SctpSocketOption
;
/**
* Unimplemented.
*/
public
class
SctpMultiChannelImpl
extends
SctpMultiChannel
{
private
static
final
String
message
=
"SCTP not supported on this platform"
;
public
SctpMultiChannelImpl
(
SelectorProvider
provider
)
{
super
(
provider
);
throw
new
UnsupportedOperationException
(
message
);
}
@Override
public
Set
<
Association
>
associations
()
{
throw
new
UnsupportedOperationException
(
message
);
}
@Override
public
SctpMultiChannel
bind
(
SocketAddress
local
,
int
backlog
)
throws
IOException
{
throw
new
UnsupportedOperationException
(
message
);
}
@Override
public
SctpMultiChannel
bindAddress
(
InetAddress
address
)
throws
IOException
{
throw
new
UnsupportedOperationException
(
message
);
}
@Override
public
SctpMultiChannel
unbindAddress
(
InetAddress
address
)
throws
IOException
{
throw
new
UnsupportedOperationException
(
message
);
}
@Override
public
Set
<
SocketAddress
>
getAllLocalAddresses
()
throws
IOException
{
throw
new
UnsupportedOperationException
(
message
);
}
@Override
public
Set
<
SocketAddress
>
getRemoteAddresses
(
Association
association
)
throws
IOException
{
throw
new
UnsupportedOperationException
(
message
);
}
@Override
public
SctpMultiChannel
shutdown
(
Association
association
)
throws
IOException
{
throw
new
UnsupportedOperationException
(
message
);
}
@Override
public
<
T
>
T
getOption
(
SctpSocketOption
<
T
>
name
,
Association
association
)
throws
IOException
{
throw
new
UnsupportedOperationException
(
message
);
}
@Override
public
<
T
>
SctpMultiChannel
setOption
(
SctpSocketOption
<
T
>
name
,
T
value
,
Association
association
)
throws
IOException
{
throw
new
UnsupportedOperationException
(
message
);
}
@Override
public
Set
<
SctpSocketOption
<?>>
supportedOptions
()
{
throw
new
UnsupportedOperationException
(
message
);
}
@Override
public
<
T
>
MessageInfo
receive
(
ByteBuffer
buffer
,
T
attachment
,
NotificationHandler
<
T
>
handler
)
throws
IOException
{
throw
new
UnsupportedOperationException
(
message
);
}
@Override
public
int
send
(
ByteBuffer
buffer
,
MessageInfo
messageInfo
)
throws
IOException
{
throw
new
UnsupportedOperationException
(
message
);
}
@Override
public
SctpChannel
branch
(
Association
association
)
throws
IOException
{
throw
new
UnsupportedOperationException
(
message
);
}
@Override
protected
void
implConfigureBlocking
(
boolean
block
)
throws
IOException
{
throw
new
UnsupportedOperationException
(
message
);
}
@Override
public
void
implCloseSelectableChannel
()
throws
IOException
{
throw
new
UnsupportedOperationException
(
message
);
}
}
src/macosx/classes/sun/nio/ch/sctp/SctpServerChannelImpl.java
0 → 100644
浏览文件 @
2344f775
/*
* Copyright (c) 2009, 2012, 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. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* 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.
*/
package
sun.nio.ch.sctp
;
import
java.net.SocketAddress
;
import
java.net.InetAddress
;
import
java.io.IOException
;
import
java.util.Set
;
import
java.nio.channels.spi.SelectorProvider
;
import
com.sun.nio.sctp.SctpChannel
;
import
com.sun.nio.sctp.SctpServerChannel
;
import
com.sun.nio.sctp.SctpSocketOption
;
/**
* Unimplemented.
*/
public
class
SctpServerChannelImpl
extends
SctpServerChannel
{
private
static
final
String
message
=
"SCTP not supported on this platform"
;
public
SctpServerChannelImpl
(
SelectorProvider
provider
)
{
super
(
provider
);
throw
new
UnsupportedOperationException
(
message
);
}
@Override
public
SctpChannel
accept
()
throws
IOException
{
throw
new
UnsupportedOperationException
(
message
);
}
@Override
public
SctpServerChannel
bind
(
SocketAddress
local
,
int
backlog
)
throws
IOException
{
throw
new
UnsupportedOperationException
(
message
);
}
@Override
public
SctpServerChannel
bindAddress
(
InetAddress
address
)
throws
IOException
{
throw
new
UnsupportedOperationException
(
message
);
}
@Override
public
SctpServerChannel
unbindAddress
(
InetAddress
address
)
throws
IOException
{
throw
new
UnsupportedOperationException
(
message
);
}
@Override
public
Set
<
SocketAddress
>
getAllLocalAddresses
()
throws
IOException
{
throw
new
UnsupportedOperationException
(
message
);
}
@Override
public
<
T
>
T
getOption
(
SctpSocketOption
<
T
>
name
)
throws
IOException
{
throw
new
UnsupportedOperationException
(
message
);
}
@Override
public
<
T
>
SctpServerChannel
setOption
(
SctpSocketOption
<
T
>
name
,
T
value
)
throws
IOException
{
throw
new
UnsupportedOperationException
(
message
);
}
@Override
public
Set
<
SctpSocketOption
<?>>
supportedOptions
()
{
throw
new
UnsupportedOperationException
(
message
);
}
@Override
protected
void
implConfigureBlocking
(
boolean
block
)
throws
IOException
{
throw
new
UnsupportedOperationException
(
message
);
}
@Override
public
void
implCloseSelectableChannel
()
throws
IOException
{
throw
new
UnsupportedOperationException
(
message
);
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录