cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicolas Daniels (JIRA)" <>
Subject [jira] [Commented] (CXF-6332) Wadl Genertion: @Description cannot be bound to field
Date Wed, 08 Apr 2015 09:32:12 GMT


Nicolas Daniels commented on CXF-6332:

On my resource class I have:
//@Description("Cannot add description with this CXF version, added a bug: CXF-6332")
private String customHeader;

This is generated correctly within the Wadl but without doc.

>From WadlGenerator:
line 679: doHandleClassParams
line 695: doWriteParam
line 908: addDocsAndCloseElement
line 936: isDocAvailable

So I think this is already handled correctly within the code, just need to be able to add
the annotation on the field itself.

> Wadl Genertion: @Description cannot be bound to field
> -----------------------------------------------------
>                 Key: CXF-6332
>                 URL:
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 3.0.4
>            Reporter: Nicolas Daniels
>            Priority: Minor
> WadlGenerator seems to handle correctly @Description annotation on class level, and so
on class fields.
> However the @Description cannot be assigned to Field:
> @Target({java.lang.annotation.ElementType.TYPE, java.lang.annotation.ElementType.METHOD,
> Can you change this to:
> @Target({java.lang.annotation.ElementType.TYPE, java.lang.annotation.ElementType.METHOD,
> java.lang.annotation.ElementType.FIELD})

This message was sent by Atlassian JIRA

View raw message