IBM Support

IZ63945: JAVAC NOT HONOURING A VALID CAST

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Error Message: The following cast is legal yet rejected:
    class X {
        static class BB<T, S> { }
        static class BD<T> extends BB<T, T> { }
        void f() {
            BB<? extends Number, ? super Integer> bb = null;
            Object o = (BD<Number>) bb; // <<warn>> <<todo:
    cast-infer>>
        }
    }
    .
    Stack Trace: N/A
    .
    

Local fix

  • N/A
    

Problem summary

  • javac code was not enabled to handle some legal casts
    

Problem conclusion

  • This defect will be fixed in:
    5.0.0 SR11 FP1
    
    javac code is fixed to handle legal casts like that of shown in
    errorMessage above.
    
    To obtain the fix:
    Install build 20100110 or later
    

Temporary fix

Comments

APAR Information

  • APAR number

    IZ63945

  • Reported component name

    JAVA 5 CLASS LI

  • Reported component ID

    620500130

  • Reported release

    500

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2009-10-29

  • Closed date

    2010-04-27

  • Last modified date

    2010-04-27

  • 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 5 CLASS LI

  • Fixed component ID

    620500130

Applicable component levels

  • R500 PSN

       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":"5.0","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
27 April 2010