try { cons = jdk12MulticastSocketJoinGroupAction.class.getConstructor(new Class[] { MulticastSocket.class, InetAddress.class}); } catch (Throwable e) { } this.s = s; this.a = a;
try { s.joinGroup(a); return s; // No Error } catch (Throwable t) { return null; // Error }