[ https://issues.apache.org/jira/browse/SLING-11374?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ashok Pelluru resolved SLING-11374. ----------------------------------- Resolution: Fixed > Improve the details of the exceptions thrown by the BinaryOperator > ------------------------------------------------------------------ > > Key: SLING-11374 > URL: https://issues.apache.org/jira/browse/SLING-11374 > Project: Sling > Issue Type: Improvement > Components: HTL > Reporter: PuzanovsP > Assignee: Ashok Pelluru > Priority: Minor > Fix For: Scripting HTL Compiler 1.2.16-1.4.0 > > Time Spent: 1h 10m > Remaining Estimate: 0h > > When exception occurs: > org.apache.sling.api.SlingException: Cannot get DefaultSlingScript: Operands > are not of the same type: the equality operator can only be applied to > String, Number and Boolean types. > > Trace: > Caused by: > org.apache.sling.scripting.sightly.compiler.SightlyCompilerException: > Operands are not of the same type: the equality operator can only be applied > to String, Number and Boolean types. at > org.apache.sling.scripting.sightly.compiler.expression.nodes.BinaryOperator.strictEq(BinaryOperator.java:247) > [org.apache.sling.scripting.sightly.compiler:1.0.22.1_4_0] at > org.apache.sling.scripting.sightly.apps.frontdoor.components.content.twoResponsiveColumns.twoResponsiveColumns_html.render(twoResponsiveColumns_html.java:63) > > Please improve the log and tell us actually which property mismatched and > which type it had. > --------------- > When we try to compare Long with Number would be great if it worked actually > and not failed with this error. > Thanks a lot! -- This message was sent by Atlassian Jira (v8.20.10#820010)