Allow aliases on synthetic shadows

This commit is contained in:
Mumfrey committed 2015-04-10 02:30:59 +01:00
1 parent 88932f117e
commit 7c8da4fd76
1 file changed
+1 -1
@@ -224,7 +224,7 @@ class MixinPreProcessor {
}
if (!target.name.equals(mixinField.name)) {
if ((target.access & Opcodes.ACC_PRIVATE) == 0) {
if ((target.access & Opcodes.ACC_PRIVATE) == 0 && (target.access & Opcodes.ACC_SYNTHETIC) == 0) {
throw new InvalidMixinException(this.mixin, "Non-private field cannot be aliased. Found " + target.name);
}