Community
Participate
Working Groups
Created attachment 155675 [details] Testcase When I have a class with a static method, and a class method with the same name defined after it, a warning “The static function resolve from the type URI should be accessed in a static way” appears. The class method also doesn’t show up in the overview. JSDT seems to think the class method is a static method. Further evidence for this can be found in the error the removeDotSegments() call inside gives: “Cannot make a static reference to the non-static function removeDotSegments() from the type URI”, which normally occurs when you try to call a class method from a static method. If you define the class method before the static method, these errors do not occur, although then the overview does not show the presence of a resolve static method.
I think there's some nomenclature confusion going on here. Class methods mean the same thing as static methods. Did you mean constructors?
*** Bug 251373 has been marked as a duplicate of this bug. ***