[ROO-3724] Antlr shows error when interface extends more than one element or extends generic type Created: 10/Mar/16  Updated: 10/Mar/16  Resolved: 10/Mar/16

Status: Closed
Project: Spring Roo
Component/s: None
Affects Version/s: 2.0.0.M1
Fix Version/s: 2.0.0.M2

Type: Bug Priority: Minor
Reporter: Juan Carlos García del Canto Assignee: Juan Carlos García del Canto
Resolution: Invalid Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


Spring Roo Shell generates an interface that extends more than one interface. One of the extended elements is a generic interface. That extends elements are registered on .aj files. When developer execute push-in operation (ROO-3678), all elements generated on .aj files will be pushed in .java file. The interface generated above shows like the following after apply push-in operations:

public interface ProductRepository extends JpaRepository<Product, Long>, ProductRepositoryCustom {

Now, Spring Roo Shell prints the following error produced by ANTLR.

line 7:66 mismatched input ',' expecting {'.', 'implements', '{', '['}

Comment by Juan Carlos García del Canto [ 10/Mar/16 ]

Finally it was not an antlr parser error. Seems like Spring Roo adds duplicated extends and implements, that adds a "," to separate them and that produces the log error.

Generated at Mon Aug 03 09:20:34 UTC 2020 using Jira 8.5.4#805004-sha1:0444eab799707f9ad7b248d69f858774aadfd250.