Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Cannot Reproduce
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Java API
-
Labels:None
-
Number of attachments :
Description
I'm having an issue with QDox that I'm parsing a Java source file to a JavaClass object and write it back to file again by using the JavaSource class. Maybe I'm doing this in a wrong way but I cant find any code that gives me the feeling that I am.
In short, the case is:
JavaDocBuilder builder = new JavaDocBuilder(); builder.addSource(new File("MyClass.java")); JavaClass clazz = builder.getClassByName("MyClass"); String javaSource = clazz.getSource().toString();
My feeling is that this should be processed in the writeBody methods of all AbstractJavaEntity classes.
I'm not sure it this is the way to report an issue/feature. So my apologies in case it's not.
Activity
Robert Scholte
made changes -
Field | Original Value | New Value |
---|---|---|
Status | Open [ 1 ] | Closed [ 6 ] |
Assignee | Robert Scholte [ rfscholte ] | |
Resolution | Cannot Reproduce [ 5 ] |
I solved this for myself by some minor changes in AbstractJavaEntity:
This works fine so far. It's not working for method parameter annotations as that's handled inside the JavaMethod class but adding support for that should be easy.