Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 541002 - Wrong cursor jump in String
Summary: Wrong cursor jump in String
Status: CLOSED DUPLICATE of bug 520081
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.8   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-11 01:56 EST by Peter CLA
Modified: 2018-11-11 12:45 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter CLA 2018-11-11 01:56:18 EST
1. Create a new Workspace
2. Create a new java-project
3. Create a Class
4. Create a main-method
5. Add this line to the main Method:

    System.out.write("((?\"{\\\"\\\":\"+()+\",\":\"ss\").());try {");

6. Place the curser between the two s and hit the key "{".

Expected behaviour:

    The line must be 
    System.out.write("((?\"{\\\"\\\":\"+()+\",\":\"s{s\").());try {");

Problem

    The line is:
    System.out.write("((?\"{\\\"\\\":\"+()+\",\":\"ss\").());try { {");

    Even with copy-and-paste the { moves behind the ";try".

Workaround:

    Copy the line into an external editor. Place the { between the two s. Copy it in the external editor again and paste it into eclipse.
Comment 1 Stephan Herrmann CLA 2018-11-11 12:45:58 EST

*** This bug has been marked as a duplicate of bug 520081 ***