Menu

#464 Incorrectly formats when wrapping long method names

1.5b5
open
nobody
5
2005-12-14
2005-12-14
No

When using the attached test.xml convensions file, the
following code is incorrectly formatted:

public void testSomething()
{
if (test) {
cha =
test.thisIsAReallyLongMethodSuperDKkdlsakldsklsdkdlskdsdldsajl
dsjdsakladjskldsjkladjkslajkdlsajkldsjakl(cha, cha,
cha, cha);
test("cha");
} else {
cha =
test.thisIsAReallyLongMethodSuperDKkdlsakldsklsdkdlskdsdldsajl
dsjdsakladjskldsjkladjkslajkdlsajkldsjakl(cha, cha,
cha, cha);
}
}

it is formatted as:

if (test)
{
cha = test

.thisIsAReallyLongMethodSuperDKkdlsakldsklsdkdlskdsdldsajlds
jdsakladjskldsjkladjkslajkdlsajkldsjakl(cha,
cha, cha, cha);
test("cha");
}
else
{
cha = test

.thisIsAReallyLongMethodSuperDKkdlsakldsklsdkdlskdsdldsa
jldsjdsakladjskldsjkladjkslajkdlsajkldsjakl(cha,
cha, cha, cha);
}
}

I was able to work around this issue with the attached
patch, but I am not sure if this is the right way to
fix the issue.

Discussion

  • Terence Haddock

    Terence Haddock - 2005-12-14

    Convension used to reproduce failure

     
  • Terence Haddock

    Terence Haddock - 2005-12-14

    Java file which is incorrectly formatted

     
  • Terence Haddock

    Terence Haddock - 2005-12-14

    patch of DotPrinter which seems to work around the issue

     
  • Ionut Scutaru

    Ionut Scutaru - 2006-03-20

    Logged In: YES
    user_id=524832

    I'm interested in this one too...

     

Log in to post a comment.