Bug 235 : Auto Format progressively eats code with certain brace settings
Last modified: 2010-03-26 07:05




Status:
RESOLVED
Resolution:
FIXED -
Priority:
P4
Severity:
normal

 

Reporter:
fry
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2005-12-01 08:57
use Editor.java as a test case, running Auto Format multiple times will
keep eating code. i haven't looked into what code is being eaten, but on
each attempt, the formatter responds that the code has changed along the way.
Additional Comment #1 From fry 2005-12-01 09:00
this code from Editor.java will cause strange results from autoformat. it
looks like the second brace is removed and/or many spaces are added after
the "No", which are progressively eaten on multiple trips through auto format.

Object[] options = {
"Yes", "No"




};
Additional Comment #2 From fry 2005-12-01 09:05
may be related to bug #109.