. Fix DefaultAsynchronousChannelProvider.create to not crash on FreeBSD but
to instead create an instance of BsdAsynchronousChannelProvider(). PR: 183389 Submitted by: girgen@
This commit is contained in:
parent
ce533630e3
commit
00bc59125f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=332063
2 changed files with 14 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
|||
|
||||
PORTNAME= openjdk
|
||||
PORTVERSION= ${JDK_MAJOR_VERSION}.${PORT_MINOR_VERSION}.${PORT_BUILD_NUMBER}
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= java devel
|
||||
MASTER_SITES= http://download.java.net/openjdk/jdk${JDK_MAJOR_VERSION}u${JDK_MINOR_VERSION}/promoted/b${JDK_BUILD_NUMBER}/ \
|
||||
http://download.java.net/jaxp/1.4.5/:jaxp \
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
$FreeBSD$
|
||||
|
||||
--- jdk/src/solaris/classes/sun/nio/ch/DefaultAsynchronousChannelProvider.java.orig 2013-10-28 01:26:45.766774262 +0100
|
||||
+++ jdk/src/solaris/classes/sun/nio/ch/DefaultAsynchronousChannelProvider.java 2013-10-28 01:27:24.043766301 +0100
|
||||
@@ -50,7 +50,7 @@
|
||||
return new SolarisAsynchronousChannelProvider();
|
||||
if (osname.equals("Linux"))
|
||||
return new LinuxAsynchronousChannelProvider();
|
||||
- if (osname.contains("OS X"))
|
||||
+ if (osname.contains("OS X") || osname.equals("FreeBSD"))
|
||||
return new BsdAsynchronousChannelProvider();
|
||||
throw new InternalError("platform not recognized");
|
||||
}
|
Loading…
Reference in a new issue