On 14/01/2014 16:57, Volker Simonis wrote:
:

test/com/sun/nio/sctp/SctpChannel/Util.java
test/com/sun/nio/sctp/SctpMultiChannel/Util.java
test/com/sun/nio/sctp/SctpServerChannel/Util.java

    - On AIX, we currently haven't implemented SCTP but we nevertheless
    compile the shared SCTP classes into the runtime class library. This way
    the AIX JDK can at least compile SCTP applications altough it can not run
    them. To support this scenario, the runtime check for the availability of
    SCTP has to be extended to catch UnsatisfiedLinkError and
    NoClassDefFoundError. UnsatisfiedLinkError will be thrown the first time
    when the class SctpChannelImpl will be loaded because it cannot load the
    its native support library in the static initialisation section. On the
    next load attempt of the class, a NoClassDefFoundError will be thrown
    because of the previously failed initialisation.

OS X has the same issue and the solution used there are stub implementations that just throw UOE. Details in jdk/src/macosx/classes/sun/nio/ch/sctp and that maybe that would work for AIX too.

-Alan.

Reply via email to