Menu

#146 Indent: adding new method argument

2: Annoying
open
5
2003-03-05
2003-02-12
No

Type the following line:

public void foo(int a, int b)

Now assume you want to add a third argument, c. Type a
comma after b and hit enter. The close paren will move
to the next line with no indentation at all, until you
type any letter and hit tab:

public void foo(int a, int b,
)

If you just hit enter after b, the close paren is
indented "correctly".

Discussion

  • Tim Oberg

    Tim Oberg - 2003-02-12

    Logged In: YES
    user_id=691516

    James and I have been working on this bug. The problem we
    have found is that our fix breaks the method in IndentTest
    that tests indenting anonymous inner classes passed to
    methods. This is an issue we want to bring up in class
    perhaps, as indentation for anonymous inner classes passed
    to methods is currently broken in some cases anyways.

     
  • Tim Oberg

    Tim Oberg - 2003-02-12
    • assigned_to: nobody --> jhsia
     
  • Charles Reis

    Charles Reis - 2003-02-12

    Logged In: YES
    user_id=429731

    Yes, it's going to be tricky, and might require some other
    form of context.

    Could you post an example of an inner class that breaks
    indentation now?

     
  • Tim Oberg

    Tim Oberg - 2003-02-12

    Logged In: YES
    user_id=691516

    see bug 685124

     
  • Charles Reis

    Charles Reis - 2003-02-16
    • priority: 5 --> 6
     
  • Charles Reis

    Charles Reis - 2003-02-16

    Logged In: YES
    user_id=429731

    Raising the priority of this bug, since it is being
    addressed as part of Task 70906 ("Indent Bugs").

     
  • Charles Reis

    Charles Reis - 2003-03-05

    Logged In: YES
    user_id=429731

    Lowering the priority for the time being, since we are
    moving on to other projects in 312.

     
  • Charles Reis

    Charles Reis - 2003-03-05
    • priority: 6 --> 5
    • summary: Indent wrong if adding new method argument --> Indent: adding new method argument
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.