Closed murdos closed 4 years ago
Outch, thanks for reporting this one. I'll see about this this week-end
For the entity issue:
For the field issue:
Thanks, case 2 is indeed more fluent. Just wondering: is there's any technical difficulty in support both cases? I saw that for fields there are already 2 different places for javadoc according to documentation:
entity A {
name String /** My super field */
}
and
entity A {
/** My super field */ name String
}
Nop, not if whitespaces are involved. As they are ignored, the placement is whatever you want it to be
Overview of the issue
While doing some tests with the customs annotations from https://github.com/jhipster/jhipster-core/pull/349 from master version, I noticed several issues related to the order of javadoc and annotations:
On entity level:
Works:
However with the following jdl, the javadoc is silently dropped:
On field level:
Works:
Crashes:
with the error:
Motivation for or Use Case
Similarly to what’s possible in Java, it should be possible to add javadoc before annotation and the other way round. The javadoc should not be silently dropped or makes the parser crashes.
Reproduce the error
See above
Related issues
Suggest a Fix
No idea! 😁
JHipster Version(s)
6.3.0 with jhipster-core master
JHipster configuration
Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryBrowsers and Operating System