Commit efd5a2e9 authored by pcregut's avatar pcregut

Incorrect check on innerName. The encoded value is created with null if...

Incorrect check on innerName. The encoded value is created with null if innerName is null (as name is not null).
Likely source of #316369.
parent 5e53393f
......@@ -446,7 +446,7 @@ public class ClassWriter extends ClassVisitor {
constantPool.addTypeToConstantPool(Constants.INNER_CLASS_ANNOTATION_INTERNAL_NAME);
// According to the documentation, if the class is anonymous, the name becomes a Null value.
if (name == null) {
if (innerName == null) { // DOUBLE CHECK IF NAME OR INNER NAME.
encodedValue = EncodedValueFactory.getEncodedNullValue();
} else {
encodedValue = EncodedValueFactory.getEncodedValue(innerName, Opcodes.VALUE_STRING);
......
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