[
https://issues.jboss.org/browse/ROASTER-98?page=com.atlassian.jira.plugin...
]
Elis Edlund updated ROASTER-98:
-------------------------------
Component/s: API
Description:
public static void main(String[] args) {
JavaClassSource src = Roaster.parse(JavaClassSource.class,
"package issue;\npublic class Issue { \n" +
" /**\n" +
" * Creates a new instance of CLASS\n" +
" *\n" +
" * @param actual the actual value.\n" +
" * @return the modified text\n" +
" */\n" +
" public static String someMethod(String actual) {\n"
+
" return actual;\n" +
" }}");
System.out.println(src); //looks ok
MethodSource<JavaClassSource> method = src.getMethods().get(0);
System.out.println(method);//looks ok
System.out.println(method.getJavaDoc().getFullText());//looks not ok
//will have "@paramactual the actual value." instead of "@param
actual the actual value."
}
Priority: Critical (was: Minor)
Affects Version/s: 2.18.3.Final
MethodSource.getJavaDoc().getFullText() formats @param without space
----------------------------------------------------------------------
Key: ROASTER-98
URL:
https://issues.jboss.org/browse/ROASTER-98
Project: Roaster
Issue Type: Patch
Components: API
Affects Versions: 2.18.3.Final
Reporter: Elis Edlund
Priority: Critical
public static void main(String[] args) {
JavaClassSource src = Roaster.parse(JavaClassSource.class,
"package issue;\npublic class Issue { \n" +
" /**\n" +
" * Creates a new instance of CLASS\n" +
" *\n" +
" * @param actual the actual value.\n" +
" * @return the modified text\n" +
" */\n" +
" public static String someMethod(String actual)
{\n" +
" return actual;\n" +
" }}");
System.out.println(src); //looks ok
MethodSource<JavaClassSource> method = src.getMethods().get(0);
System.out.println(method);//looks ok
System.out.println(method.getJavaDoc().getFullText());//looks not ok
//will have "@paramactual the actual value." instead of "@param
actual the actual value."
}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)