You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Freeman Yue Fang (Jira)" <ji...@apache.org> on 2021/04/09 18:02:00 UTC

[jira] [Commented] (CXF-8456) wadl2java plugin generates classes names with invalid identifiers

    [ https://issues.apache.org/jira/browse/CXF-8456?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17318176#comment-17318176 ] 

Freeman Yue Fang commented on CXF-8456:
---------------------------------------

Hi [~ueslei],

Thanks for reporting this and this is fixed.

Just FYI, without the fix, you can always use "id" attribute to avoid this error. Something like
{code}
<ns2:resource path="api/1.0/admin/banner" id="{package}classname">
{code}

Cheers
Freeman

> wadl2java plugin generates classes names with invalid identifiers
> -----------------------------------------------------------------
>
>                 Key: CXF-8456
>                 URL: https://issues.apache.org/jira/browse/CXF-8456
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 3.4.3
>         Environment: {code:xml}
>               <plugin>
>                 <groupId>org.apache.cxf</groupId>
>                 <artifactId>cxf-wadl2java-plugin</artifactId>
>                 <version>3.4.3</version>
>                 <executions>
>                     <execution>
>                         <goals>
>                             <goal>wadl2java</goal>
>                         </goals>
>                         <configuration>
>                             <wadlOptions>
>                                 <wadlOption>
>                                     <packagename>com.atlassian.bitbucket.server</packagename>
>                                     <wadl>${project.basedir}/src/main/resources/wadl/bitbucket-rest.wadl</wadl>
>                                 </wadlOption>
>                             </wadlOptions>
>                         </configuration>
>                     </execution>
>                 </executions>
>             </plugin>
> {code}
>            Reporter: Ueslei Lima
>            Assignee: Freeman Yue Fang
>            Priority: Blocker
>             Fix For: 3.5.0, 3.4.4, 3.3.11
>
>
> Whenever the resource path has numbers on it it is generating invalid class names, in this specific case below, adding numbers in front of it:
> {code:java}
> <ns2:resource path="api/1.0/admin/banner">{code}
>  
> {code:java}
>  com/atlassian/bitbucket/server/0AdminBannerResource.java:[15,17] <identifier> expected
> {code}
>  
> File: https://docs.atlassian.com/bitbucket-server/rest/7.11.2/bitbucket-rest.wadl
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)