This is an automated email from the ASF dual-hosted git repository. joshtynjala pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-compiler.git
commit 0f2660e92dc884145e95d9b442ac477521649a82 Author: Josh Tynjala <[email protected]> AuthorDate: Wed Oct 9 13:05:53 2024 -0700 ABCGeneratingReducer: fix missing function signature checks for super.method() member access calls --- .../royale/compiler/internal/as/codegen/ABCGeneratingReducer.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/compiler/src/main/java/org/apache/royale/compiler/internal/as/codegen/ABCGeneratingReducer.java b/compiler/src/main/java/org/apache/royale/compiler/internal/as/codegen/ABCGeneratingReducer.java index afa8fdc9c..5020f7b68 100644 --- a/compiler/src/main/java/org/apache/royale/compiler/internal/as/codegen/ABCGeneratingReducer.java +++ b/compiler/src/main/java/org/apache/royale/compiler/internal/as/codegen/ABCGeneratingReducer.java @@ -4005,7 +4005,9 @@ public class ABCGeneratingReducer public InstructionList reduce_functionCallOfSuperclassMethod_to_expression(IASNode iNode, InstructionList stem, Binding method_name, Vector<InstructionList> args) { + currentScope.getMethodBodySemanticChecker().checkFunctionCall(iNode, method_name, args); currentScope.getMethodBodySemanticChecker().checkSuperAccess(iNode); + if (method_name.getDefinition() instanceof AccessorDefinition) getProblems().add(new CallNonFunctionProblem(iNode, method_name.getName().getBaseName())); @@ -4025,7 +4027,9 @@ public class ABCGeneratingReducer public InstructionList reduce_functionCallOfSuperclassMethod_to_void_expression(IASNode iNode, InstructionList stem, Binding method_name, Vector<InstructionList> args) { + currentScope.getMethodBodySemanticChecker().checkFunctionCall(iNode, method_name, args); currentScope.getMethodBodySemanticChecker().checkSuperAccess(iNode); + if (method_name.getDefinition() instanceof AccessorDefinition) getProblems().add(new CallNonFunctionProblem(iNode, method_name.getName().getBaseName()));
