Share

Jalopy Java Source Code Formatter

Tracker: Bugs

1 Wrong indentation level after assignment - ID: 638279
Last Update: Comment added ( grzpil )

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


Grzegorz Pilarczyk ( grzpil ) - 2002-11-14 09:04

1

Closed

Fixed

Nobody/Anonymous

Printer Java

None

Public


Comments ( 4 )

Date: 2002-11-16 12:14
Sender: grzpil

Logged In: YES
user_id=627212

You're welcome :)


Date: 2002-11-15 18:23
Sender: marcohuProject Admin

Logged In: YES
user_id=44430

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

Fixed with 1.0b10


Date: 2002-11-15 08:30
Sender: grzpil

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


Date: 2002-11-14 14:35
Sender: marcohuProject Admin

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.


Attached Files ( 2 )

Filename Description Download
files638279.zip Exported settings & another demonstration Download
TestClass.java Demonstration of the problem Download

Changes ( 8 )

Field Old Value Date By
close_date 2002-11-15 18:23 2002-11-16 12:14 grzpil
resolution_id None 2002-11-15 18:23 marcohu
status_id Open 2002-11-15 18:23 marcohu
priority 5 2002-11-15 18:23 marcohu
close_date - 2002-11-15 18:23 marcohu
File Added 35448: files638279.zip 2002-11-15 08:30 grzpil
category_id Plug-in NetBeans 2002-11-14 14:35 marcohu
File Added 35360: TestClass.java 2002-11-14 09:04 grzpil