Details

    • Fix Priority:
      2

      Description

      Step to reproduce :
      When we declare a ServiceImpl with such a method :

      public JSONObject setDeclarationActivite(long dec_id, Map<String, ?>[] declarationActiviteJson)
      
      \{
      ...
      

      and launching buildService Gradle task, the folowwing error is throwed :

      Building DeclarationActivite
      17:22:05,531 ERROR [java:355] PARSER_ERROR
      C:\dev\liferay\7.1-ga1\LiferayProjectSDKwithDevStudioCommunityEdition\eclipse-workspace\ober-workspace\modules\service-ober\service-ober-service\..\service-ober-api\src\main\java\bzh\asten\ober\service\DeclarationActiviteService.java:121:22: expecting TRIPLE_DOT, found '<'
      	at antlr.Parser.match(Parser.java:211)
      	at de.hunsicker.jalopy.language.antlr.InternalJavaParser.variableLengthParameterDeclaration(InternalJavaParser.java:5146)
      	at de.hunsicker.jalopy.language.antlr.InternalJavaParser.parameterDeclarationList(InternalJavaParser.java:4027)
      	at de.hunsicker.jalopy.language.antlr.InternalJavaParser.interfaceField(InternalJavaParser.java:3254)
      	at de.hunsicker.jalopy.language.antlr.InternalJavaParser.interfaceBlock(InternalJavaParser.java:2586)
      	at de.hunsicker.jalopy.language.antlr.InternalJavaParser.interfaceDefinition(InternalJavaParser.java:765)
      	at de.hunsicker.jalopy.language.antlr.InternalJavaParser.typeDefinitionInternal(InternalJavaParser.java:639)
      	at de.hunsicker.jalopy.language.antlr.InternalJavaParser.typeDefinition(InternalJavaParser.java:465)
      	at de.hunsicker.jalopy.language.antlr.InternalJavaParser.parse(InternalJavaParser.java:296)
      	at de.hunsicker.jalopy.language.JavaRecognizer.parse(JavaRecognizer.java:588)
      	at de.hunsicker.jalopy.Jalopy.parse(Jalopy.java:1226)
      	at de.hunsicker.jalopy.Jalopy.format(Jalopy.java:1044)
      	at de.hunsicker.jalopy.Jalopy.format(Jalopy.java:1017)
      	at com.liferay.portal.tools.ToolsUtil.writeFile(ToolsUtil.java:495)
      	at com.liferay.portal.tools.service.builder.ServiceBuilder._write(ServiceBuilder.java:7022)
      	at com.liferay.portal.tools.service.builder.ServiceBuilder._write(ServiceBuilder.java:7007)
      	at com.liferay.portal.tools.service.builder.ServiceBuilder._createService(ServiceBuilder.java:3165)
      	at com.liferay.portal.tools.service.builder.ServiceBuilder.<init>(ServiceBuilder.java:797)
      	at com.liferay.portal.tools.service.builder.ServiceBuilder.main(ServiceBuilder.java:230)
      17:22:05,535 ERROR [io:1071] UNKNOWN_ERROR
      expecting EOF, found '}'
      Nested Exception is: C:\dev\liferay\7.1-ga1\LiferayProjectSDKwithDevStudioCommunityEdition\eclipse-workspace\ober-workspace\modules\service-ober\service-ober-service\..\service-ober-api\src\main\java\bzh\asten\ober\service\DeclarationActiviteService.java:129:1: expecting EOF, found '}'
      	at antlr.Parser.match(Parser.java:211)
      	at de.hunsicker.jalopy.language.antlr.InternalJavaParser.parse(InternalJavaParser.java:308)
      ...
      

      The parse fail on the '[]'. If Iremove it, it can build.

      public JSONObject setDeclarationActivite(long dec_id, Map<String, ?> declarationActiviteJson){
      ...
      

      But I need to declare an array of Map... Can you fix it ?

      Christophe

        Attachments

          Activity

            People

            • Assignee:
              lr_ide LR IDE
              Reporter:
              cariou Christophe Cariou
              Participants of an Issue:
              Recent user:
              Sherry Zhu
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Days since last comment:
                43 weeks, 4 days ago

                Packages

                Version Package