IBM Support

IV26908: NIO CHANNELS.NEWINPUTSTREAM().AVAILABLE() DOES NOT GIVE CORRECT RESULTS WHEN CHANNELS USED WITH FILES

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Error Message: The java.nio.channels.Channels class's
    newInputStream().available() returns 0 even though there is data
    available, when channel is associated with files.
    .
    Stack Trace: N/A
    .
    

Local fix

Problem summary

  • The problem is caused because the available API did not handle
    the special case when channel is to a file.
    

Problem conclusion

  • This defect will be fixed in:
    6.0.0 SR12
    6.0.1 SR4
    .
    The JDK has been updated to handle the special case when the
    channel is to a file so that the available API returns the
    correct results.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV26908

  • Reported component name

    JAVA CLASS LIBS

  • Reported component ID

    620700130

  • Reported release

    600

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-08-23

  • Closed date

    2012-12-04

  • Last modified date

    2012-12-04

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    JAVA CLASS LIBS

  • Fixed component ID

    620700130

Applicable component levels

  • R600 PSY

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSCVQ3Y","label":"Java Class Libraries"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"6.0","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
04 December 2012