-
Bug
-
Resolution: Done
-
Major
-
2.2.8
-
None
ConnectionTable will not execute under jdk 1.3, when loaded a TCP stack I get :
[java] - DownHandler (TCP) exception is java.lang.NoClassDefFoundError: java/net/SocketAddress
[java] java.lang.NoClassDefFoundError: java/net/SocketAddress
[java] at org.jgroups.protocols.TCP.getConnectionTable(TCP.java:121)
[java] at org.jgroups.protocols.TCP.start(TCP.java:96)
[java] at org.jgroups.stack.Protocol.handleSpecialDownEvent(Protocol.java:547)
[java] at org.jgroups.stack.DownHandler.run(Protocol.java:118)
which turns out to be the references in ConnectionTable.java to JDK 1.4 specific API's. I believe these functionalities should be pushed into a subclass for JDK 1.4.
Apparently this problem occurs because java tries to resolve all objects that are defined in a class when the class is loaded. The only way to get around these problems is to do this code with reflection, but that is not optimal and would be prone to problems.