Issues
- Static methods fail when called from an abstract classLDEV-4246Michael Offner
- getComponentMetadata("MyAbstractClass") does not indicate it is abstractLDEV-3560Resolved issue: LDEV-3560Pothys - MitrahSoft
- abstract functions missing from component meta dataLDEV-1715Resolved issue: LDEV-1715Michael Offner
- Can't get metadata on abstract CFCLDEV-1042Resolved issue: LDEV-1042Michael Offner
- Parsing issue with abstract function declarations without semicolonsLDEV-283Resolved issue: LDEV-283
- "you cannot instantiate the abstract component"LDEV-281Resolved issue: LDEV-281Michael Offner
- Abstract components don't workLDEV-254Resolved issue: LDEV-254
7 of 7
Static methods fail when called from an abstract class
Description
Environment
Windows 11
Details
Assignee
Michael OffnerMichael OffnerReporter
Joe ChastainJoe ChastainPriority
NewNew 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
Affects versions
Details
Details
Assignee
Michael Offner
Michael OffnerReporter
Joe Chastain
Joe ChastainPriority
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
Affects versions
Created 24 October 2022 at 13:38
Updated 26 October 2022 at 09:36
Activity
Show:
Zac Spitzer26 October 2022 at 09:36
Pothys - MitrahSoft26 October 2022 at 07:43Edited
I've checked this ticket and confirmed the issue happened on the lucee latest version 5.3.10.84-SNAPSHOT. When calling the static methods from an abstract component, it throws an error like you cannot instantiate an abstract component [D:\….\abstract.cfc], this component can only be extended by other components and ACF also throws the same error.
I added testcase to this ticket
Pull Request:
Static methods are failing when called from an abstract class. Lucee is attempting to instantiate an object, which of course is not what should happen when a static method is called. (Static methods are working just fine when called from a non-abstract class.)