[
http://jira.codehaus.org/browse/QDOX-228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=266230#action_266230
]
Robert Scholte commented on QDOX-228:
-------------------------------------
It looks like you're talking about two different things.
First of all: QDox was created to be able to parse java-code and construct a
model with it. It's actually a feature that QDox can write this model to a
file. The model doesn't keep any formatting information.
With QDox-2.0 it will be possible to define your own writer, which means you
have full control of how a generated file should look like.
The line numbers you're talking about are based on the *source*file, not the
file generated by QDox.
> wrong code formatting
> ---------------------
>
> Key: QDOX-228
> URL: http://jira.codehaus.org/browse/QDOX-228
> Project: QDox
> Issue Type: Bug
> Affects Versions: 1.12
> Reporter: Lars K. W. Gohlke
>
> the Javasource output from the JavaDocBuilder does not show the actual code
> (some reformatting)
> {noformat}
> package de.lgohlke.qdox;
> import java.io.File;
> import java.io.IOException;
> import org.junit.Test;
> import com.thoughtworks.qdox.JavaDocBuilder;
> import com.thoughtworks.qdox.model.JavaClass;
> import com.thoughtworks.qdox.model.JavaSource;
> public class QdoxBug
> {
> @Test
> public void testBug() throws IOException
> {
> File file = new File("src/test/java/de/lgohlke/qdox/QdoxBug.java");
> JavaSource source = new JavaDocBuilder().addSource(file);
> for (JavaClass clazz : source.getClasses())
> {
> System.out.println(clazz.getSource().toString());
> }
> }
> }
> {noformat}
> this is really annoying, can it be fixed?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email