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



Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

Runtimes for Java Technology
Java Class Libraries

Software version:

6.0

Reference #:

IV08154

Modified date:

2012-06-01

Translate my page

Machine Translation

Content navigation