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.

Bug 134719 - incorrect try{<ENTER> behaviour with multiline expressions
Summary: incorrect try{<ENTER> behaviour with multiline expressions
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Max Sauer
URL:
Keywords:
Depends on:
Blocks: 133913
  Show dependency tree
 
Reported: 2008-05-08 08:54 UTC by unr303
Modified: 2008-09-23 18:00 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description unr303 2008-05-08 08:54:34 UTC
package javaapplication13;

public class Main {

    public static void main(String[] args) {
        System.out.println(
                "q w e r t y u i o p a s d f g h j k l z x c v b n m ");
    }

}

->

package javaapplication13;

public class Main {

    public static void main(String[] args) {
        try{<ENTER>System.out.println(
                "q w e r t y u i o p a s d f g h j k l z x c v b n m ");
    }

}

->

package javaapplication13;

public class Main {

    public static void main(String[] args) {
        try{
            System.out.println(
        }
                "q w e r t y u i o p a s d f g h j k l z x c v b n m ");
    }

}

If editor cannot handle multiline expressions correctly it shouldn't try to insert brace because it just adds more work
to programmer instead of helping him.

  Product Version         = NetBeans IDE Dev (Build 20080503171657)
  Operating System        = Windows XP version 5.1 running on x86
Comment 1 Jan Becicka 2008-07-25 09:39:33 UTC
Maxi, please take a look at it.
Comment 2 Max Sauer 2008-09-23 09:31:21 UTC
Fixed.
---
http://hg.netbeans.org/main/rev/6fb73b8089ba
Comment 3 Quality Engineering 2008-09-23 18:00:33 UTC
Integrated into 'main-golden', will be available in build *200809231435* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/6fb73b8089ba
User: Max Sauer <msauer@netbeans.org>
Log: #134719: incorrect try{<ENTER> behaviour with multiline expressions