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

Parser error "unknown or unhandled primary context"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.0.0.M3
    • Fix Version/s: None
    • Component/s: @ ROO SHELL
    • Labels:
      None
    • Environment:
      Windows 10, Java 8

      Description

      I have added Spring Batch to a project and wrote a job with syntax:

      return stepBuilders.get( "step" )
      .transactionManager( transactionManager )
      .<MyEntity, MyEntity>chunk( 20 )
      .reader( reader() )
      .processor( loggingProcessor() )
      .writer( writer() )
      .build();
      

      Roo (both shell and STS (3.7.3) stopped working, only the message "unknown or unhandled primary context" is shown. After enabling debug mode, the error shows

      no viable alternative input at '.<'
      

      also with line/column infor matching the code above.
      I assume it is a parser error. If I remove the parametrization, Roo works fine again (but I get tons of warnings (of course) due to raw types.

        Attachments

          Activity

            People

            Assignee:
            eruiz Enrique Ruiz (DiSiD)
            Reporter:
            kisst2 Tibor Kiss
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: