IBM Support

IV08154: JAVAC FAILURE WHILE ANNOTATION ARRAY HAVING COMMA AT THE END

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Error Message: Customer not able to compile the java programs
    having trailing commas in annotation arrays.
    .
    Stack Trace: Failure like below while compiling :-
    TestCase.java:35: illegal start of expression
    SuppressWarnings<OSB><CSB> value() default
    {@SuppressWarnings({"",})};
    <HAT>01
    TestCase.java:40: illegal start of expression
    @SuppressWarnings({"Beware the ides of March.",}),
    .
    N/A
    

Local fix

  • Remove the trailing comma.
    

Problem summary

  • As per Java Language Specification array initializer can have an
    optional comma before the closing brace. If present, it should
    be simply ignored. But JVM was not taking care of this.
    

Problem conclusion

  • This defect will be fixed in:
    6.0.0 SR10
    6.0.1 SR2
    .
    Modified the JVM to ignore the trailing comma if present.
    .
    To obtain the fix:
    Install build 20111012 or later
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV08154

  • 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

    2011-09-27

  • Closed date

    2011-11-13

  • Last modified date

    2012-06-01

  • 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:
01 June 2012