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

Jurrie Overgoor commented on CXF-8436:
--------------------------------------

Hi Freeman,

Point 1 and 3: alright, then let's not reuse the `--suppress-generated-date` 
flag. (I rather dislike the generic name of that flag if it is only meant for 
JavaDoc, but that's water under the bridge I suppose.) I don't really care how 
the flag is called, as long as I'm able to remove the timestamp 😀 But out of 
curiosity, what's the use case for having the timestamp removed from the 
JavaDoc, but _not_ from the @Generated annotations?

Point 2: I hold a different opinion on what is the most important thing about 
this annotation. And I think the original authors also didn't think the 
timestamp was the most important. If they did, they would have made the 
parameter required. I think it is wise to mark code that's been generated with 
@Generated, simply because others can see it's generated, and changes would run 
the risk of being overwritten. Also, [there is tooling like 
Sonar|https://jira.sonarsource.com/browse/SONARJAVA-71] that can skip code 
marked with @Generated. The timestamp is not required for that.

With kind regards,

Jurrie

> Support reproducable builds together with @Generated
> ----------------------------------------------------
>
>                 Key: CXF-8436
>                 URL: https://issues.apache.org/jira/browse/CXF-8436
>             Project: CXF
>          Issue Type: Improvement
>          Components: Tooling
>    Affects Versions: 3.3.8
>            Reporter: Jurrie Overgoor
>            Priority: Major
>
> We are trying to get our build reproducable. We use wsdl2java for generating 
> Java classes from WSDL files, and currently have -mark-generated in effect.
> This causes problems, as there are timestamps written to the @Generated tag. 
> I hoped that -suppress-generated-date would suppress this, but it only 
> affects the generated Javadoc comment.
> Can we get -suppress-generated-date to also suppress outputting timestamps in 
> the @Generated annotations?



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

Reply via email to