diff options
author | jfrijters <jfrijters> | 2012-06-15 18:51:42 +0400 |
---|---|---|
committer | jfrijters <jfrijters> | 2012-06-15 18:51:42 +0400 |
commit | 24910cc0d1a7ee815e59c25c0268bb997743cf00 (patch) | |
tree | 0ea4d7aea4ceb4d20bc90968bd0863dc60dcfc21 /openjdk/java | |
parent | 01ae451f9f923bc41d723310b0e2197536ae10e0 (diff) |
Use new ikvm.internal.Util.MONO field to check for Mono runtime, instead of our own private field.
Diffstat (limited to 'openjdk/java')
-rw-r--r-- | openjdk/java/net/TwoStacksPlainDatagramSocketImpl.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/openjdk/java/net/TwoStacksPlainDatagramSocketImpl.java b/openjdk/java/net/TwoStacksPlainDatagramSocketImpl.java index 2ca04f17..a119c4b7 100644 --- a/openjdk/java/net/TwoStacksPlainDatagramSocketImpl.java +++ b/openjdk/java/net/TwoStacksPlainDatagramSocketImpl.java @@ -213,7 +213,7 @@ class TwoStacksPlainDatagramSocketImpl extends AbstractPlainDatagramSocketImpl } protected void connect0(InetAddress address, int port) throws SocketException { - if (runningOnMono) { + if (ikvm.internal.Util.MONO) { // MONOBUG Mono doesn't allow Socket.Connect(IPAddress.Any, 0) to disconnect a datagram socket, // so we throw a SocketException, this will cause DatagramSocket to emulate connectedness throw new SocketException("connected datagram sockets not supported on Mono"); @@ -226,6 +226,4 @@ class TwoStacksPlainDatagramSocketImpl extends AbstractPlainDatagramSocketImpl protected void disconnect0(int family) { TwoStacksPlainDatagramSocketImpl_c.disconnect0(this, family); } - - private static final boolean runningOnMono = cli.System.Type.GetType("Mono.Runtime") != null; } |