This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
A small enhancement to the automatic )'s in 3.6: I often find myself modifying a line such as: System.out.println ("Thingy: " + c.getClass().getName()); ^ by putting the caret at the ^ and changing it to: System.out.println ("Thingy: " + (c != null ? c.getClass.getName() : "null"))); When I type the closing ) for the ? : clause, it just overwrites the existing ), so none is added. This is non-optimal, because I end up retyping the rest of the )'s so I can add one at the end. Two possibilities for handling this situation: 1. (simple) - detect if all the remaining characters on the line are )'s followed by a ; and if so, allow the insertion. 2. (not as simple) - detect if there are an unbalanced number of parentheses on the line (possibly handling split lines?) and allow the insertion if it will make them balance
Changed subcomponent to code completion.