IBM Support

IV73284: HANG IN JAVA.UTIL.SCANNER.FINDHORIZON()

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • Error Message: The java.util.Scanner class has a public API
    method called findHorizon(String pattern, int horizon). This
    method is expected to find the next occurrence of a pattern in
    the source associated with a scanner. When the source is
    System.in, the method is expected to return as soon as an
    occurrence of the pattern occurs on the standard input. In Java
    6, this  method waits for "horizon" characters to appear on the
    standard input before returning the first occurrence of the
    pattern.
    .
    Stack Trace:
    .
    

Local fix

Problem summary

  • The method Scanner.findWithinHorizon fails to return as expected
    when working with System.in
    

Problem conclusion

  • The Scanner class has been updated to achieve the expected
    behavior.
    .
    This APAR will be fixed in the following Java Releases:
       6 R1 SR8 FP7   (6.1.8.7)
       6    SR16 FP7  (6.0.16.7)
    .
    Contact your IBM Product's Service Team for these Service
    Refreshes and Fix Packs.
    For those running stand-alone, information about the available
    Service Refreshes and Fix Packs can be found at:
               https://www.ibm.com/developerworks/java/jdk/
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV73284

  • 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

    2015-05-14

  • Closed date

    2015-06-26

  • Last modified date

    2015-06-26

  • 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:
26 June 2015