From d0cd976246eaa192ccd4d23374d4bfeabc8d32a2 Mon Sep 17 00:00:00 2001 From: Martin Carlberg Date: Tue, 11 Apr 2017 12:30:16 +0200 Subject: [PATCH] Fixed: Get class method instead of instance method When asking a protocol for a specific class method we asked each super protocol for an instance method. Thanks Frank for finding this! --- Objective-J/ObjJAcornCompiler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objective-J/ObjJAcornCompiler.js b/Objective-J/ObjJAcornCompiler.js index 961c3f06d..b6b279970 100644 --- a/Objective-J/ObjJAcornCompiler.js +++ b/Objective-J/ObjJAcornCompiler.js @@ -584,7 +584,7 @@ ProtocolDef.prototype.getClassMethod = function(name) { for (var i = 0, size = protocols.length; i < size; i++) { var protocol = protocols[i], - method = protocol.getInstanceMethod(name); + method = protocol.getClassMethod(name); if (method) return method;