You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Radu Cotescu (JIRA)" <ji...@apache.org> on 2019/01/24 10:49:00 UTC

[jira] [Updated] (SLING-8217) Numeric operations can lead to Java code that doesn't compile

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

Radu Cotescu updated SLING-8217:
--------------------------------
    Fix Version/s: HTL Maven Plugin 1.2.4-1.4.0

> Numeric operations can lead to Java code that doesn't compile
> -------------------------------------------------------------
>
>                 Key: SLING-8217
>                 URL: https://issues.apache.org/jira/browse/SLING-8217
>             Project: Sling
>          Issue Type: Bug
>          Components: Scripting
>    Affects Versions: Scripting HTL Java Compiler 1.0.24-1.4.0
>            Reporter: Radu Cotescu
>            Assignee: Radu Cotescu
>            Priority: Major
>             Fix For: Scripting HTL Java Compiler 1.1.2-1.4.0, HTL Maven Plugin 1.2.4-1.4.0
>
>
> Starting with SLING-7682 the HTL Java compiler generates code that performs numeric operations for validating the parameters for list iteration control. If the iteration control variables are passed as property access constructs instead of numeric constants, then the generated Java code will try to apply the regular numeric operations (-, +, /, *) to {{java.lang.Number}} objects.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)