Bug 260798 - [formatter] Strange behavior of never join lines
Summary: [formatter] Strange behavior of never join lines
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.5   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: 3.5 M5   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-12 21:11 EST by Lenik CLA
Modified: 2009-01-27 13:42 EST (History)
2 users (show)

See Also:


Attachments
with `never join lines' enabled. (28.26 KB, text/xml)
2009-01-13 03:25 EST, Lenik CLA
no flags Details
Proposed patch (5.95 KB, patch)
2009-01-14 05:48 EST, Frederic Fusier CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Lenik CLA 2009-01-12 21:11:32 EST
Build ID: I20081211-1908

Steps To Reproduce:
(Disabled never join lines)

    @Override
    public void addSelectionListener(SelectionListener listener) {
        super.addSelectionListener(new SelectionListener() {
            @Override
            public void widgetSelected(SelectionEvent e) {
            }

            @Override
            public void widgetDefaultSelected(SelectionEvent e) {
            };
        });
    }

(Enabled never join lines)

    @Override
    public void addSelectionListener(SelectionListener listener) {
        super.addSelectionListener(new SelectionListener() {
                @Override
            public void widgetSelected(SelectionEvent e) {
                }

            @Override
            public void widgetDefaultSelected(SelectionEvent e) {
                };
                        });
    }


More information:
Comment 1 Kaloyan Raev CLA 2009-01-13 02:56:42 EST
I don't find the relation of this bug report to the EJB Tools. It looks to me like a generic JDT behavior. Moving to JDT. 
Comment 2 Dani Megert CLA 2009-01-13 03:04:18 EST
Which editor are you using? Please attach your formatter settings.
Comment 3 Lenik CLA 2009-01-13 03:25:32 EST
Created attachment 122376 [details]
with `never join lines' enabled.
Comment 4 Frederic Fusier CLA 2009-01-14 05:48:14 EST
Created attachment 122520 [details]
Proposed patch
Comment 5 Frederic Fusier CLA 2009-01-14 05:50:10 EST
Released for 3.5M5
Comment 6 Srikanth Sankaran CLA 2009-01-27 04:35:46 EST
Verified for 3.5M5 using I20090125-2000 build