In function [numberFormat], argument [number] with a type of [java.lang.Boolean] does not match the declared type of [number]

Description

See


Error:
In function [numberFormat], argument [number] with a type of [java.lang.Boolean] does not match the declared type of [number]

Attachments

5

Activity

Show:

Jon Clausen January 12, 2025 at 6:00 PM

Excellent! Glad it’s working for you now! Thanks for all of the testing and feedback!

Harry Klein January 12, 2025 at 10:22 AM

Not sure why, but while trying it today with a new server it worked suddenly:

<cfdump var="#server.boxlang#">
<cfset result = numberFormat(0 IS 0)>
<cfdump var="#result#">

Jon Clausen January 11, 2025 at 2:42 PM

can you dump server.boxlang and share the screenshot?

Harry Klein January 11, 2025 at 1:40 PM
Edited

I removed the server and created another one:
server start port=80 host=pc-hkl name=boxlang_latest cfengine=boxlang@1.0.0-snapshot javaVersion=openjdk21_jdk JVMArgs="-Duser.language\=en" --debug

The version is “1.0.0-snapshot“

The version of bx-compat-cfml is “1.15.0+21

So I guess I have the latest versions, but still I get this error

isAdminForm = numberFormat(0 IS 0)

In REPL it works fine:

Jon Clausen January 11, 2025 at 1:14 PM

There is a disconnect somewhere then since I added additional handling for this the other day. Can you try starting your server with CommandBox, using the latest snapshot? I’m wondering if the mini server version you are using is not current.

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Fix versions

Priority

Sentry

Created December 28, 2024 at 10:55 AM
Updated January 12, 2025 at 6:00 PM
Resolved January 10, 2025 at 10:56 PM