Disabled NIO constraint level autodetection for IBM JDK 1.6
This commit is contained in:
parent
645ba6d3b9
commit
be12a1bdf1
@ -184,25 +184,35 @@ class NioProviderMetadata {
|
||||
if (provider.equals("sun.nio.ch.PollSelectorProvider")) {
|
||||
return 1;
|
||||
}
|
||||
} else if (version.equals("1.6") || version.matches("^1\\.6\\D.*$")) {
|
||||
if (provider.equals("sun.nio.ch.EPollSelectorProvider") ||
|
||||
provider.equals("sun.nio.ch.PollSelectorProvider")) {
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
|
||||
// Commented out - the constraint level of IBM JDK 1.6 is
|
||||
// different between versions.
|
||||
//
|
||||
//else if (version.equals("1.6") || version.matches("^1\\.6\\D.*$")) {
|
||||
// if (provider.equals("sun.nio.ch.EPollSelectorProvider") ||
|
||||
// provider.equals("sun.nio.ch.PollSelectorProvider")) {
|
||||
// return 2;
|
||||
// }
|
||||
//}
|
||||
|
||||
// AIX
|
||||
} if (os.indexOf("aix") >= 0) {
|
||||
if (version.equals("1.5") || version.matches("^1\\.5\\D.*$")) {
|
||||
if (provider.equals("sun.nio.ch.PollSelectorProvider")) {
|
||||
return 1;
|
||||
}
|
||||
} else if (version.equals("1.6") || version.matches("^1\\.6\\D.*$")) {
|
||||
if (provider.equals("sun.nio.ch.EPollSelectorProvider") ||
|
||||
provider.equals("sun.nio.ch.PollSelectorProvider")) {
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
|
||||
// Commented out - the constraint level of IBM JDK 1.6 is
|
||||
// different between versions.
|
||||
//
|
||||
//else if (version.equals("1.6") || version.matches("^1\\.6\\D.*$")) {
|
||||
// if (provider.equals("sun.nio.ch.EPollSelectorProvider") ||
|
||||
// provider.equals("sun.nio.ch.PollSelectorProvider")) {
|
||||
// return 2;
|
||||
// }
|
||||
//}
|
||||
}
|
||||
// BEA
|
||||
} else if (vendor.indexOf("bea") >= 0 || vendor.indexOf("oracle") >= 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user