Bug 104774 - [formating]: wrong line breaks
Summary: [formating]: wrong line breaks
Status: VERIFIED DUPLICATE of bug 264112
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.6 M5   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-22 06:23 EDT by Oliver Friedrich CLA
Modified: 2010-04-27 04:23 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Friedrich CLA 2005-07-22 06:23:57 EDT
Hi,

i have the problem, that the Eclipse 3.1 Java source formatter breaks some of my
code lines in a bad way ...

It makes out of something like

[..]
if (log.isDebugEnabled()) {
    log.debug(dbNode + " already exists, skipping creation");
}
[..]

this ugly layout:

[..]
if (log.isDebugEnabled()) {
    log
           .debug(dbNode
                  + " already exists, skipping creation");
}
[..]

It would perfectly fit into one line, why he breaks the line? I haven't found an
option to avoid this behaviour. This is a small example. I have a bigger one,
where the formatter makes this:

[..]
        if (log.isDebugEnabled())
            log
                    .debug("We have "
                           + childOfChildProductIDList.size()
                           + " obejctID(s) (->"
                           + childOfChildProductIDList
                           + ") for child of child-object-ID "
                           + parentID
                           + " to create links to from existing nodes with
child-object-ID="
                           + childID);
[..]

out of an compact code block.

I hope, it is only a small bug and easy to fix, but at the moment it is some
kind of a showstopper to use the formatter.
Comment 1 Tom Hofmann CLA 2005-07-22 06:49:40 EDT
moving to core.
Comment 2 Olivier Thomann CLA 2007-06-21 12:22:12 EDT

*** This bug has been marked as a duplicate of bug 59891 ***
Comment 3 Frederic Fusier CLA 2010-04-14 06:57:39 EDT
It was in fact more a duplicate of bug 264112, hence it's fixed since 3.6M5.

*** This bug has been marked as a duplicate of bug 264112 ***
Comment 4 Ayushman Jain CLA 2010-04-27 03:13:14 EDT
verified for 3.6M7 using build I20100426-0852