Load java: load annotations on enum entries

This commit is contained in:
Pavel V. Talanov
2015-12-09 17:56:18 +03:00
parent fb19552920
commit 280e00981f
7 changed files with 71 additions and 6 deletions
@@ -585,8 +585,8 @@ public class LazyJavaClassMemberScope(
if (field != null) {
EnumEntrySyntheticClassDescriptor.create(c.storageManager, ownerDescriptor, name,
c.storageManager.createLazyValue {
memberIndex().getAllFieldNames() + memberIndex().getMethodNames({true})
}, c.components.sourceElementFactory.source(field))
memberIndex().getAllFieldNames() + memberIndex().getMethodNames({ true })
}, c.resolveAnnotations(field), c.components.sourceElementFactory.source(field))
}
else null
}