Menu

#213 Wrong indentation level after assignment

closed-fixed
nobody
1
2002-11-15
2002-11-14
No

In my class after multiline assignment e.g.
String sql =
" blah blah blah blah blah blah blah blah " +
" blah blah blah blah blah blah blah blah ";

the indentation level stays in the column of the
first quotation mark. It should go back one indent
level.

I have prepared test class to demonstrate the
problem and attach it as TestClass.java

Discussion

  • Grzegorz Pilarczyk

    Demonstration of the problem

     
  • Marco Hunsicker

    Marco Hunsicker - 2002-11-14

    Logged In: YES
    user_id=44430

    I can't verify this bug with my settings. Please attach your
    exported settings (as .XML).

    I will release a new version tonight because of a severe bug
    in the case statement printing logic. If you sent the
    settings early, I will have time to fix this one too. Thanks.

     
  • Marco Hunsicker

    Marco Hunsicker - 2002-11-14
    • labels: 459893 --> Printer Java
     
  • Grzegorz Pilarczyk

    Exported settings & another demonstration

     
  • Grzegorz Pilarczyk

    Logged In: YES
    user_id=627212

    Here it is...
    Moreover after some tests it showed up, that this
    strange behaviour is recursive. I mean, that if you have
    more than one multiline assignment in a file, each of
    them causes the indent to move one step to the right
    (actually not to retract from the multiline indent).

    I have NB release 3.4 impl=200208222340, I had the
    prevoius Jalopy version and yesterday I upgraded to the
    new one. And then the problem started.

    I will attach also two more files TestClass2.java and
    TestClass3.java to show you what exactly happens (in
    case you wouldn't be able to reproduce it) maybe it
    helps.

    Regards,
    Greg

     
  • Marco Hunsicker

    Marco Hunsicker - 2002-11-15
    • priority: 5 --> 1
    • status: open --> closed-fixed
     
  • Marco Hunsicker

    Marco Hunsicker - 2002-11-15

    Logged In: YES
    user_id=44430

    Many thanks for you're detailed investigation. Such a bug
    report really helps.

    Fixed with 1.0b10

     
  • Grzegorz Pilarczyk

    Logged In: YES
    user_id=627212

    You're welcome :)

     

Log in to post a comment.