Jump to content
  • The operator > is undefined


    mpeters_1
    Assigned User User_306070
    CategoryBug report
    PriorityHigh
    ReproducibilityN/A
    ResolutionOpen
    SeverityMinor
    StatusNew
    Versionv3.0

    PrintWhenExpression failed:

    ($V{Mandantennummer_COUNTER} != null ? $V{Mandantennummer_COUNTER} : new Integer(0)) > ($V{Mandantennummer_COUNT_VALUE_1} != null ? $V{Mandantennummer_COUNT_VALUE_1} : new Integer(1))

     

    Message:

    The operator > is undefined for the argument type(s) java.lang.Integer, java.lang.Integer

     

    Declaration:

    $F{MandantNo}

    integer.valueOf("0")

    integer.valueOf("1")

    This was a given solution if it not possible to compare directly with Integer.parseInt(1).

     

    The same works in 5.5. Unfortunately I have to use 3.0 in a project.

    When was it fixed?

    Is there a workaround?

    The Goal:

    Print a field only if group of Mandantennummer is not unique.

     



    User Feedback

    Recommended Comments

    Changed Assigned User from - to @User_306070


    Following hint I have found in forum "Use CompareTo"New Code:$V{Mandantennummer_COUNTER}.CompareTo($V{Mandantennummer_COUNTER})Raise an error also:The method CompareTo(Integer) is undefined for the Type Integer.
    Link to comment
    Share on other sites


×
×
  • Create New...