JDK-8042166 : TEST_BUG: new test com/sun/nio/sctp/SctpChannel/ReceiveIntoDirect.java fails to compile on OS X
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 7u65,7u72
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: os_x
  • CPU: generic
  • Submitted: 2014-04-29
  • Updated: 2014-09-29
  • Resolved: 2014-08-13
Related Reports
Duplicate :  
Description
Testsuite name: Regression
Test name: com/sun/nio/sctp/SctpChannel/ReceiveIntoDirect.java
JDK tested: jdk 7u65 b08
OS tested: Mac OS X
Is it a regression: NO
Is it platform specific: YES (mac os x)

Test fails to compile since it was integrated in 7u65 b08, see JDK-8034181.

LOG:

/export/local/aurora/CommonData/j2se_rest/test/com/sun/nio/sctp/SctpChannel/ReceiveIntoDirect.java:34: error: package com.sun.nio.sctp does not exist
import com.sun.nio.sctp.AbstractNotificationHandler;
                       ^
/export/local/aurora/CommonData/j2se_rest/test/com/sun/nio/sctp/SctpChannel/ReceiveIntoDirect.java:35: error: package com.sun.nio.sctp does not exist
import com.sun.nio.sctp.AssociationChangeNotification;
                       ^
/export/local/aurora/CommonData/j2se_rest/test/com/sun/nio/sctp/SctpChannel/ReceiveIntoDirect.java:36: error: package com.sun.nio.sctp.AssociationChangeNotification does not exist
import com.sun.nio.sctp.AssociationChangeNotification.AssocChangeEvent;
                                                     ^
/export/local/aurora/CommonData/j2se_rest/test/com/sun/nio/sctp/SctpChannel/ReceiveIntoDirect.java:37: error: package com.sun.nio.sctp does not exist
import com.sun.nio.sctp.HandlerResult;
                       ^
/export/local/aurora/CommonData/j2se_rest/test/com/sun/nio/sctp/SctpChannel/ReceiveIntoDirect.java:38: error: package com.sun.nio.sctp does not exist
import com.sun.nio.sctp.MessageInfo;
                       ^
/export/local/aurora/CommonData/j2se_rest/test/com/sun/nio/sctp/SctpChannel/ReceiveIntoDirect.java:39: error: package com.sun.nio.sctp does not exist
import com.sun.nio.sctp.Notification;
                       ^
/export/local/aurora/CommonData/j2se_rest/test/com/sun/nio/sctp/SctpChannel/ReceiveIntoDirect.java:40: error: package com.sun.nio.sctp does not exist
import com.sun.nio.sctp.PeerAddressChangeNotification;
                       ^
/export/local/aurora/CommonData/j2se_rest/test/com/sun/nio/sctp/SctpChannel/ReceiveIntoDirect.java:41: error: package com.sun.nio.sctp does not exist
import com.sun.nio.sctp.SctpChannel;
                       ^
/export/local/aurora/CommonData/j2se_rest/test/com/sun/nio/sctp/SctpChannel/ReceiveIntoDirect.java:42: error: package com.sun.nio.sctp does not exist
import com.sun.nio.sctp.SctpServerChannel;
                       ^
/export/local/aurora/CommonData/j2se_rest/test/com/sun/nio/sctp/SctpChannel/ReceiveIntoDirect.java:43: error: package com.sun.nio.sctp does not exist
import com.sun.nio.sctp.ShutdownNotification;
                       ^
/export/local/aurora/CommonData/j2se_rest/test/com/sun/nio/sctp/SctpChannel/ReceiveIntoDirect.java:162: error: cannot find symbol
        private final SctpServerChannel ssc;
                      ^
  symbol:   class SctpServerChannel
  location: class ReceiveIntoDirect.Server
/export/local/aurora/CommonData/j2se_rest/test/com/sun/nio/sctp/SctpChannel/ReceiveIntoDirect.java:208: error: cannot find symbol
    class ReceiveNotificationHandler extends AbstractNotificationHandler<Object>
                                             ^
  symbol:   class AbstractNotificationHandler
  location: class ReceiveIntoDirect
/export/local/aurora/CommonData/j2se_rest/test/com/sun/nio/sctp/SctpChannel/ReceiveIntoDirect.java:220: error: cannot find symbol
                Notification notification, Object attachment) {
                ^
  symbol:   class Notification
  location: class ReceiveIntoDirect.ReceiveNotificationHandler
/export/local/aurora/CommonData/j2se_rest/test/com/sun/nio/sctp/SctpChannel/ReceiveIntoDirect.java:219: error: cannot find symbol
        public HandlerResult handleNotification(
               ^
  symbol:   class HandlerResult
  location: class ReceiveIntoDirect.ReceiveNotificationHandler
/export/local/aurora/CommonData/j2se_rest/test/com/sun/nio/sctp/SctpChannel/ReceiveIntoDirect.java:227: error: cannot find symbol
                AssociationChangeNotification notification, Object attachment) {
                ^
  symbol:   class AssociationChangeNotification
  location: class ReceiveIntoDirect.ReceiveNotificationHandler
/export/local/aurora/CommonData/j2se_rest/test/com/sun/nio/sctp/SctpChannel/ReceiveIntoDirect.java:226: error: cannot find symbol
        public HandlerResult handleNotification(
               ^
  symbol:   class HandlerResult
  location: class ReceiveIntoDirect.ReceiveNotificationHandler
/export/local/aurora/CommonData/j2se_rest/test/com/sun/nio/sctp/SctpChannel/ReceiveIntoDirect.java:241: error: cannot find symbol
                PeerAddressChangeNotification pacn, Object unused)
                ^
  symbol:   class PeerAddressChangeNotification
  location: class ReceiveIntoDirect.ReceiveNotificationHandler
/export/local/aurora/CommonData/j2se_rest/test/com/sun/nio/sctp/SctpChannel/ReceiveIntoDirect.java:240: error: cannot find symbol
        public HandlerResult handleNotification(
               ^
  symbol:   class HandlerResult
  location: class ReceiveIntoDirect.ReceiveNotificationHandler
/export/local/aurora/CommonData/j2se_rest/test/com/sun/nio/sctp/SctpChannel/ReceiveIntoDirect.java:249: error: cannot find symbol
                ShutdownNotification notification, Object attachment) {
                ^
  symbol:   class ShutdownNotification
  location: class ReceiveIntoDirect.ReceiveNotificationHandler
/export/local/aurora/CommonData/j2se_rest/test/com/sun/nio/sctp/SctpChannel/ReceiveIntoDirect.java:248: error: cannot find symbol
        public HandlerResult handleNotification(
               ^
  symbol:   class HandlerResult
  location: class ReceiveIntoDirect.ReceiveNotificationHandler
/export/local/aurora/CommonData/j2se_rest/test/com/sun/nio/sctp/SctpChannel/Util.java:40: error: package com.sun.nio.sctp does not exist
import com.sun.nio.sctp.SctpChannel;
                       ^
/export/local/aurora/CommonData/j2se_rest/test/com/sun/nio/sctp/SctpChannel/Util.java:99: error: cannot find symbol
    static void dumpAddresses(SctpChannel channel,
                              ^
  symbol:   class SctpChannel
  location: class Util
/export/local/aurora/CommonData/j2se_rest/test/com/sun/nio/sctp/SctpChannel/ReceiveIntoDirect.java:117: error: cannot find symbol
        MessageInfo info;
        ^
  symbol:   class MessageInfo
  location: class ReceiveIntoDirect
/export/local/aurora/CommonData/j2se_rest/test/com/sun/nio/sctp/SctpChannel/ReceiveIntoDirect.java:119: error: cannot find symbol
        try (SctpChannel channel = SctpChannel.open()) {
             ^
  symbol:   class SctpChannel
  location: class ReceiveIntoDirect
/export/local/aurora/CommonData/j2se_rest/test/com/sun/nio/sctp/SctpChannel/ReceiveIntoDirect.java:119: error: cannot find symbol
        try (SctpChannel channel = SctpChannel.open()) {
                                   ^
  symbol:   variable SctpChannel
  location: class ReceiveIntoDirect
/export/local/aurora/CommonData/j2se_rest/test/com/sun/nio/sctp/SctpChannel/ReceiveIntoDirect.java:165: error: cannot find symbol
            ssc = SctpServerChannel.open().bind(null);
                  ^
  symbol:   variable SctpServerChannel
  location: class ReceiveIntoDirect.Server
/export/local/aurora/CommonData/j2se_rest/test/com/sun/nio/sctp/SctpChannel/ReceiveIntoDirect.java:185: error: cannot find symbol
                    SctpChannel sc = ssc.accept();
                    ^
  symbol:   class SctpChannel
  location: class ReceiveIntoDirect.Server
/export/local/aurora/CommonData/j2se_rest/test/com/sun/nio/sctp/SctpChannel/ReceiveIntoDirect.java:188: error: cannot find symbol
                    MessageInfo info = MessageInfo.createOutgoing(null, 0);
                    ^
  symbol:   class MessageInfo
  location: class ReceiveIntoDirect.Server
/export/local/aurora/CommonData/j2se_rest/test/com/sun/nio/sctp/SctpChannel/ReceiveIntoDirect.java:188: error: cannot find symbol
                    MessageInfo info = MessageInfo.createOutgoing(null, 0);
                                       ^
  symbol:   variable MessageInfo
  location: class ReceiveIntoDirect.Server
/export/local/aurora/CommonData/j2se_rest/test/com/sun/nio/sctp/SctpChannel/ReceiveIntoDirect.java:222: error: cannot find symbol
            return HandlerResult.CONTINUE;
                   ^
  symbol:   variable HandlerResult
  location: class ReceiveIntoDirect.ReceiveNotificationHandler
/export/local/aurora/CommonData/j2se_rest/test/com/sun/nio/sctp/SctpChannel/ReceiveIntoDirect.java:218: error: method does not override or implement a method from a supertype
        @Override
        ^
/export/local/aurora/CommonData/j2se_rest/test/com/sun/nio/sctp/SctpChannel/ReceiveIntoDirect.java:228: error: cannot find symbol
            AssocChangeEvent event = notification.event();
            ^
  symbol:   class AssocChangeEvent
  location: class ReceiveIntoDirect.ReceiveNotificationHandler
/export/local/aurora/CommonData/j2se_rest/test/com/sun/nio/sctp/SctpChannel/ReceiveIntoDirect.java:233: error: cannot find symbol
            if (event.equals(AssocChangeEvent.COMM_UP))
                             ^
  symbol:   variable AssocChangeEvent
  location: class ReceiveIntoDirect.ReceiveNotificationHandler
/export/local/aurora/CommonData/j2se_rest/test/com/sun/nio/sctp/SctpChannel/ReceiveIntoDirect.java:236: error: cannot find symbol
            return HandlerResult.CONTINUE;
                   ^
  symbol:   variable HandlerResult
  location: class ReceiveIntoDirect.ReceiveNotificationHandler
/export/local/aurora/CommonData/j2se_rest/test/com/sun/nio/sctp/SctpChannel/ReceiveIntoDirect.java:225: error: method does not override or implement a method from a supertype
        @Override
        ^
/export/local/aurora/CommonData/j2se_rest/test/com/sun/nio/sctp/SctpChannel/ReceiveIntoDirect.java:244: error: cannot find symbol
            return HandlerResult.CONTINUE;
                   ^
  symbol:   variable HandlerResult
  location: class ReceiveIntoDirect.ReceiveNotificationHandler
/export/local/aurora/CommonData/j2se_rest/test/com/sun/nio/sctp/SctpChannel/ReceiveIntoDirect.java:239: error: method does not override or implement a method from a supertype
        @Override
        ^
/export/local/aurora/CommonData/j2se_rest/test/com/sun/nio/sctp/SctpChannel/ReceiveIntoDirect.java:252: error: cannot find symbol
            return HandlerResult.CONTINUE;
                   ^
  symbol:   variable HandlerResult
  location: class ReceiveIntoDirect.ReceiveNotificationHandler
/export/local/aurora/CommonData/j2se_rest/test/com/sun/nio/sctp/SctpChannel/ReceiveIntoDirect.java:247: error: method does not override or implement a method from a supertype
        @Override
        ^
/export/local/aurora/CommonData/j2se_rest/test/com/sun/nio/sctp/SctpChannel/Util.java:61: error: cannot find symbol
            SctpChannel c = SctpChannel.open();
            ^
  symbol:   class SctpChannel
  location: class Util
/export/local/aurora/CommonData/j2se_rest/test/com/sun/nio/sctp/SctpChannel/Util.java:61: error: cannot find symbol
            SctpChannel c = SctpChannel.open();
                            ^
  symbol:   variable SctpChannel
  location: class Util
41 errors
result: Failed. Compilation failed: Compilation failed


test result: Failed. Compilation failed: Compilation failed
Comments
RULE com/sun/nio/sctp/SctpChannel/ReceiveIntoDirect.java CompilationError Compilation failed
13-08-2014

We will wait for 7u80 and check that these tests run ok against 7u80.
13-08-2014

I see JDK-7076487 will be fixed only in 7u80, so I think this bug should be closed.
13-08-2014

It is a bug in test. Test should not be run on OS X. So it should be added to ProblemsList.txt.
13-08-2014

You can also add this test to ProblemsList.txt in the test directory like this: http://jre.us.oracle.com/java/re/jdk/7u71/promoted/all/b09/ws/jdk/test/ProblemList.txt
13-08-2014

This test should be modified to PASS automatically when run on MacOSX platform. Please, modify the test.
13-08-2014

This bug makes absolutely no sense. I am closing it out and please do not re-open it. The SCTP API classes do not exist on the version of the JDK that this test was attempted to be compiled/run against, see JDK-7076487.
30-04-2014

I wonder how all other tests from the same directory haven't failed, as they also import com.sun.nio.sctp.
30-04-2014

I assume this is a dup of JDK-7076487.
30-04-2014