nested function(){}; throws byteccode error

Description

<cfscript> test(1,2,3); function test(a,b,c){ function(){ } } </cfscript>

https://trycf.com/gist/aaa842b902120e02ded8b2cf31ef8365/lucee5?theme=monokai

throws

Expecting a stackmap frame at branch target 98 Exception Details: Location: main1669302231993_759ec301_ab1b_51a0_87fd_ecf3ed09c6d8_cfm7020$cf$4a.call(Llucee/runtime/PageContext;)Ljava/lang/Object; @57: iconst_1 Reason: Expected stackmap frame at this location. Bytecode: 0x0000000: 2bb6 0058 b200 5bbb 005d 592a b400 1d03 0x0000010: 32b7 0060 b900 6603 0057 2bb6 0058 b200 0x0000020: 69bb 005d 592a b400 1d04 32b7 0060 b900 0x0000030: 6603 0057 2bb6 006d 4d04 9900 252b 2bb6 0x0000040: 0071 b200 5b06 bd00 7359 03b2 0079 5359 0x0000050: 04b2 007c 5359 05b2 007f 53b6 0083 57a7 0x0000060: 00a0 4e2d b800 8999 0005 2dbf 2db8 008f 0x0000070: 3a04 2b19 0404 04b6 0093 2b12 95b6 0099 0x0000080: 2bb6 0071 2ab4 009b 0332 2b2b b600 712a 0x0000090: b400 9b04 3205 bd00 7359 032b b600 71b2 0x00000a0: 009e b900 a402 0053 5904 12a6 53b6 0083 0x00000b0: b900 a703 0057 2b12 95b6 0099 2bb6 00aa 0x00000c0: 2b2b 1400 abb8 00b1 b600 992b 2b2b b600 0x00000d0: 712a b400 9b03 32b9 00a4 0200 b800 b6b6 0x00000e0: 0099 a700 0c3a 052b b600 b919 05bf 2bb6 0x00000f0: 00b9 a700 0d3a 062b 2cb6 00bc 1906 bf2b 0x0000100: 2cb6 00bc 01b0 Exception Handler Table: bci [57, 95] => handler: 98 bci [192, 229] => handler: 229 bci [57, 242] => handler: 245

Environment

None

Activity

Show:

Pothys - MitrahSoft 25 November 2022 at 06:36

I've checked this ticket and confirmed the issue happened on the lucee latest version 5.3.10.96-SNAPSHOT. Function with nested function throws java.lang.VerifyError in the lucee. Seems ACF throws an Invalid construct error.

Zac Spitzer 24 November 2022 at 15:07

Details

Assignee

Reporter

Priority

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 24 November 2022 at 14:32
Updated 8 June 2023 at 20:01

Flag notifications