Community
Participate
Working Groups
For instance with the following code /** * @Monannotation("monparametre") */ public static void main(String[] args) { // @Monannotation("monparametre") } in Java model built from discoverer, Javadoc element contains on TagElement intance without name (instead of 'Monannotation') and one wrong fragment TextElement with content '"monparametre")'. Modisco and jdt metamodels do not modelize annotations parameters values. At least, the content of TextElement should be '("monparametre")'
The problem comes from jdt model. In jdt TagElement instance, the information is wrong (no name, and truncated jdt TextElement intance). - Use case is rare : usual annotations set in javadoc do not have parameter values (@param, @return @see, ...) - A workaround is using the javadoccomment content to retrieve the complete text of theTagelement -> the 453282 solution also permits to have good Javadoc.content value for this 440953 uses cases. => issue improtance is low
"the 453282 solution also permits ..." -> "the 435282 solution also permits ..."