static function cannot be used with dot notation

Description

static functions only can be addressed via "::" notation, it should be possible to use them via "." notation the same way you are using instance functions on a instance.

So you can do

Car::getCount() // call static function on a component new Car().getCount() // calling static function on a instance

Environment

None

Activity

Show:

Pothys - MitrahSoft 19 April 2021 at 15:16

I've checked this ticket, calling a static method with dot notation works fine. But while using dot notation to calling a static method which calls another static method throws an error like No matching function [ ANOTHERSTATICMETHOD ] found.

Fixed

Details

Assignee

Michael Offner

Reporter

Priority

Labels

Fix versions

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Created 5 March 2021 at 09:49
Updated 20 April 2021 at 11:40
Resolved 12 April 2021 at 10:10

Flag notifications