Summary: | [formatter]org.eclipse.jdt.core.JavaCodeFormatter behaves in a non-GUI compatible way for xml preferences | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Misha Koshelev <misha680> |
Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> |
Status: | VERIFIED INVALID | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | amj87.iitr, Olivier_Thomann |
Version: | 3.7 | ||
Target Milestone: | 3.7 M2 | ||
Hardware: | PC | ||
OS: | Linux | ||
Whiteboard: | |||
Attachments: |
Description
Misha Koshelev
2010-09-14 15:58:32 EDT
Created attachment 178872 [details]
Log of test case output that shows differences in formatting
Created attachment 178873 [details]
Test.java.orig file for Test case (see log)
Created attachment 178874 [details]
formatter.xml file that is being used
Created attachment 178875 [details]
formatter.asprefs file that has been automatically created from formatter.xml (please see log)
Thank you Btw, this is an important note. The command line formatter with the XML file is _consistent_ with the GUI formatter in version 3.3 from the file eclipse-java-europa-winter-linux-gtk-x86_64.tar.gz. This means that the bug lies in the _GUI_ formatter of 3.6 which is reproduced with the command line version using the properties file, and _not_ in the command line formatter with the XML file. Thank you Misha Misha, I'm not sure if the command line formatter is supposed to work with xml configurations. I tried, but could not get ANY formatting at all with the xml settings. And with the .prefs file, where it actually does work, the behavious is consistent with GUI. So I dont think there should be a problem as such. Ofcourse things in the formatter would've changed from 3.3 time, and the reason why the behaviour there is consistent may be due to the fact that we were not formatting the line "Assert.assertEquals(excludePrefix + ";" + forModule + ".started;" + forModule + ".mandatory", model.get("excludePrefix"));" at all in 3.3. Can you confirm that the xml configuration does work with command line? (maybe change the alignment/tab spacing in some other lines and see if they get formatted in any way using .xml settings). Thanks! My apologies, you are correct. XML formatting is not supported. Please feel free to close the issue. Thank you Misha Closing as INVALID Verified using I20100921-1024 |