ryan
08/11/2022, 5:15 PMsqr()
with an error returning ClassFormatError:Incompatible magic value 0 in class file lucee/runtime/functions/math/Sqr
? This is happening when a component is getting initialized, but the sqr
function is not yet executed in a different function further down in the component.
I have tested the sqr
function itself in commandbox::repl and it works fine, but receive an error when placed in a script component function, even when I plugged in a plane number and tried testing both the sqr
function and the sqr
member function with the following in my code.
testSquareRoot = sqr(25);
testSquareRoot = sqr(number=25);
testSquareRoot = (25).sqr();
ryan
08/11/2022, 5:50 PMlocal.test = 25;
local.result = test.sqr();
The following continues to throw the error:
local.test = 25;
local.result = sqr(test);
The reference below shows that a regular sqr
function can be utilized:
https://docs.lucee.org/reference/functions/sqr.html
I checked the issue tracker for any anomalies, but didn't see anything.danmurphy
08/11/2022, 6:54 PMryan
08/11/2022, 7:08 PMsknowlton
08/11/2022, 7:13 PMryan
08/11/2022, 7:13 PMryan
08/11/2022, 7:13 PM