Backport of the "missing clinit attribute" javac error to 1.7?

Dawid Weiss dawid.weiss at
Tue Oct 7 07:21:54 UTC 2014

Hello compiler folks!

I've encountered the (known and resolved in 1.8) problem with javac
failing on annotations with static final fields requiring complex
initialization. The failure manifests itself on the latest 1.7 with

[ERROR] /.../[186,17] annotation foo.MyAnnotation is
missing value for the attribute <clinit>

This seems to be:

Are there any chances of backporting this patch to 1.7? ECJ compiles
such code without a glitch and so does 1.8 javac, of course.


More information about the compiler-dev mailing list