Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8132505

Signature of Java_sun_nio_ch_Net_socket0 should return jint not int

    XMLWordPrintable

Details

    • b77
    • x86
    • solaris_11

    Backports

      Description

        FULL PRODUCT VERSION :
        $ /java/re/jdk/9/latest/binaries/solaris-x64/bin/java -version
        java version "1.9.0-ea"
        Java(TM) SE Runtime Environment (build 1.9.0-ea-b74)
        Java HotSpot(TM) 64-Bit Server VM (build 1.9.0-ea-b74, mixed mode)


        ADDITIONAL OS VERSION INFORMATION :
        $ uname -a
        SunOS telling 5.11 11.2 i86pc i386 i86pc


        A DESCRIPTION OF THE PROBLEM :
        In http://hg.openjdk.java.net/jdk9/jdk9/jdk/file/5e0789110c5f/src/java.base/unix/native/libnio/ch/Net.c, Java_sun_nio_ch_Net_socket0 is declared

            189 JNIEXPORT int JNICALL
            190 Java_sun_nio_ch_Net_socket0(JNIEnv *env, jclass cl, jboolean preferIPv6,
            191 jboolean stream, jboolean reuse, jboolean ignored)

        but it should be declared to return a "jint", not an "int".


        REPRODUCIBILITY :
        This bug can be reproduced always.

        Attachments

          Issue Links

            Activity

              People

                bpb Brian Burkhalter
                webbuggrp Webbug Group
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: