Title:
Error when using ternary conditional operator inside of <cfdocumentsection>
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/Fixed
Reporter/Name(from Bugbase): Jonathan C. / ()
Created: 01/30/2019
Components: Language
Versions: 2018
Failure Type: Non Functioning
Found In Build/Fixed In Build: 2018.0.2-beta.2 / CF 2018 U5
Priority/Frequency: Critical / All users will encounter
Locale/System: ALL / Linux
Vote Count: 3
Problem Description:
A low-level error is thrown when using a terniary conditional inside of a <cfdocumentsection> tag.
Steps to Reproduce:
{code:java}
<cfdocument format="PDF">
<h1>Hello World</h1>
<cfdocumentsection>
<h2>Hello Section</h2>
<cfdocumentsection marginBottom="#arrayContains( [ 'pdf' ], 'pdf' ) ? 1.6 : 1#">
<h2>Hello Sub-Section</h2>
</cfdocumentsection>
</cfdocumentsection>
</cfdocument>
{code}
Actual Result:
An low-level 500 error is generated by the compiler:
```
(class: cfreport2ecfm1389601345, method: _factor7 signature: (Ljavax/servlet/jsp/tagext/Tag;Ljavax/servlet/jsp/JspWriter;)Ljava/lang/Object;) Expecting to find double on stack
```
Expected Result:
A PDF is generated and rendered
Any Workarounds:
Attachments:
Comments: