[ 
https://issues.apache.org/jira/browse/SLING-11374?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

PuzanovsP updated SLING-11374:
------------------------------
    Description: 
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!

  was:
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.

 

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!


> Sightly:: Improve exception details :: Operands are not of the same type: 
> error
> -------------------------------------------------------------------------------
>
>                 Key: SLING-11374
>                 URL: https://issues.apache.org/jira/browse/SLING-11374
>             Project: Sling
>          Issue Type: Bug
>          Components: HTL
>            Reporter: PuzanovsP
>            Priority: Minor
>
> 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.7#820007)

Reply via email to