Commit 578292d6 authored by pcregut's avatar pcregut

Bug 316471 occurs when the annotation field of an annotation is of type class...

Bug 316471 occurs when the annotation field of an annotation is of type class and its name is not in the string table.
parent 9ed787d2
......@@ -322,6 +322,9 @@ public class AnnotationWriter extends AnnotationVisitor {
annotationName = currentName;
// A Class in an Array must NOT be sorted.
setMustSortArray(false);
} else {
// Bug 316471 : do not forget to add the string to constant pool.
constantPool.addStringToConstantPool(annotationName);
}
// Registers the Type to the Constant Pool.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment