[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


 Description   

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', '{', '['}


 Comments   
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 Tue Oct 22 23:49:14 UTC 2019 using Jira 7.13.8#713008-sha1:1606a5c1e7006e1ab135aac81f7a9566b2dbc3a6.