Skip to content

Commit d5a1874

Browse files
committed
Add missing varparam to super call when overriding
This commits fixes a regression introduced in 240c51e. We use the dedicated JMethod#varParam() API to add the variable length parameter, however we only added normal parameters to the super call. Now we also add the dedicated varparam to the super call as well.
1 parent ef9be30 commit d5a1874

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • AndroidAnnotations/androidannotations-core/androidannotations/src/main/java/org/androidannotations/helper

‎AndroidAnnotations/androidannotations-core/androidannotations/src/main/java/org/androidannotations/helper/APTCodeModelHelper.java‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,10 @@ public JInvocation getSuperCall(GeneratedClassHolder holder, JMethod superMethod
362362
superCall.arg(param);
363363
}
364364

365+
if (superMethod.hasVarArgs()) {
366+
superCall.arg(superMethod.varParam());
367+
}
368+
365369
return superCall;
366370
}
367371

0 commit comments

Comments
 (0)