Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-2796

Provide limited support for negative attributes in JSR303 annotations

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 1.2.0.M1
    • Fix Version/s: 1.2.0.RC1
    • Component/s: @ CORE
    • Labels:
      None

      Description

      Currently, the @Min(-10L) will fail as JavaParser interprets this an japa.parser.ast.expr.UnaryExpr and this is not handled by org.springframework.roo.classpath.javaparser.details.JavaParserAnnotationMetadataBuilder and an UnsupportedOperationExeception is thrown. This change will detect the UnaryExpr with japa.parser.ast.expr.UnaryExpr.Operator.negative and return a new org.springframework.roo.classpath.details.annotations.LongAttributeValue.

        Attachments

          Activity

            People

            Assignee:
            stewarta Alan Stewart
            Reporter:
            stewarta Alan Stewart
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: