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

Spring roo failing with UnaryExpressionNotPlusMinusContext exception

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.3.1.RC1, 1.3.1.RELEASE
    • Fix Version/s: None
    • Component/s: @ ROO SHELL

      Description

      Hi,

      I am upgrading spring roo from 1.2.5.RELEASE to 1.3.1.RELEASE version.
      When I am opening roo shell with spring-roo.1.3.1.RELEASE version, it saying "no viable alternative at input 'new Specification<A>() {
      @Override
      public Predicate toPredicate(Root<A> root, CriteriaQuery<?> query, CriteriaBuilder builder)
      {
      return builder.equal(root.get("a").get("b").<'" and giving Unknown UnaryExpressionNotPlusMinusContext type.

      Below is my specification which I am using.

      public static Specification<A> dummySpecification(final String str)
      {
      return new Specification<A>() {
      @Override
      public Predicate toPredicate(Root<A> root, CriteriaQuery<?> query, CriteriaBuilder builder)

      { return builder.equal(root.get("a").get("b").<String>get("c"),str); }

      };
      }
      In the above specification if I remove '<String>' from the return statement, then it is working fine.

      P.S. It working fine with version 1.2.5.RELEASE.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ardhani Narasimha Swamy Ardhani
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: