| Summary: | Java Code Style Formatter Problem in windows and macos | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | jiang yubao <438762904> | ||||
| Component: | Core | Assignee: | Mateusz Matela <mateusz.matela> | ||||
| Status: | CLOSED WORKSFORME | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | mateusz.matela | ||||
| Version: | 4.4.2 | ||||||
| Target Milestone: | 4.7 M1 | ||||||
| Hardware: | PC | ||||||
| OS: | Mac OS X | ||||||
| Whiteboard: | needinfo | ||||||
| Attachments: |
|
||||||
The screenshot suggests that you use "Eclipse [built-in]" profile on Windows and "Eclipse 2.1 [built-in]" profile on Mac. These are different profiles, no wonder they result in different formatting. What happens when you use the same profile on both machines? Yes, the format result is different. And I am sorry that I send you the wrong screenshot. You can test in both machines. Thanks a lot for your replay! I'm sorry if I ask stupid questions, but I want to rule out all possibilities before testing this myself, as it's a bit problematic (I don't have direct access to a Mac) and existence of such a bug seems very improbable. So are you sure you use the same version of Eclipse on both machines? In Eclipse 4.5 we fixed a bug that caused 82 character long lines to sometimes not get wrapped, so maybe you have a newer version on the Mac. I have downloaded the newest version of 4.5.2 to test in both MacOS and Windows7,and found that the format result is different. I did a quick test on a MacOS in a virtual machine and I don't see any difference compared to Windows. So please specify which formatter profile you're using and paste a sample code that shows the difference. No further feedback, closing. Please reopen if you can confirm the problem and provide reproducible examples. |
Created attachment 262264 [details] java code format problem I use eclipse in macbookpro, and another programmer use eclipse in windows. Both Maximum line width is set to 80; And I find than the format result is different. This cause a big problem. I checkout source code from SVN server, format the code and submit to SVN server, and another programmer make perform synchronize from SVN server, He will find a lot of unnecessary changes。