EA-53937: Drop failing assertion about no-name val in annotation

This commit is contained in:
Denis Zharkov
2015-06-02 13:40:09 +03:00
parent 0e718fbaab
commit 8da3f53404
4 changed files with 18 additions and 1 deletions
@@ -170,7 +170,7 @@ public class PropertyCodegen {
public void generateConstructorPropertyAsMethodForAnnotationClass(JetParameter p, PropertyDescriptor descriptor) {
JvmMethodSignature signature = typeMapper.mapAnnotationParameterSignature(descriptor);
String name = p.getName();
assert name != null : "Annotation parameter has no name: " + p.getText();
if (name == null) return;
MethodVisitor mv = v.newMethod(
OtherOrigin(p, descriptor), ACC_PUBLIC | ACC_ABSTRACT, name,
signature.getAsmMethod().getDescriptor(),