I have a strange issue which happens in the latest Lucee stable version.
When I execute createObject on component X in folder "_modules.core.forms" I get this error:
So I analyzed the CFC and removed some code/methods until the error disappeared.
I guessed that the message is wrong, and the component itself is too big.
But then I compared it with other components and there are several bigger files.
So I moved the CFC to the folder "_modules.core" and it worked there!?
And I tested also in the folder "_modules" - and it also worked there!?
So I was checking for issues and found
and also the java code:
So it looks like an issue with the getPhysicalClass method?
I also wanted to note that I am using AdoptOpenJDK (latest version).
And by switching to Oracles JDK it also worked!
The issue can be reproduced with the attached files.
Please clear the page pool cache AND delete the classes from the cfclasses folder before executing the test_methodtoolarge.cfm file.
Calling the testfile then, will cause the error.
But calling the testfile again will be successful!
I've checked this ticket and confirmed the issue happened on lucee latest version 126.96.36.199-SNAPSHOT also. Yes, the same error throws for me.
I found out that the issue happens in AdoptOpenJDK (latest version) and also in Oracles JDK.
In my previous Oracle JDK it worked only because I had not deleted the class files and flushed the page pool.