Bug 73063 - Copy/cut of text results in 'Error Executing Command' in files with assert
Summary: Copy/cut of text results in 'Error Executing Command' in files with assert
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.0   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2004-09-01 11:13 EDT by Jerry Charumilind CLA
Modified: 2007-06-22 10:04 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jerry Charumilind CLA 2004-09-01 11:13:18 EDT
When I attempt to copy or cut a section of text from a file using Apple-C/Apple-V, a dialog 
appears saying:

Error Executing Command
The command for the key you pressed failed
Reason:
 The command for the key you pressed failed

If I choose Edit->Copy or Edit->Cut, it just fails silently.

This only happens with Java source files that make use of the assert keyword.  This can easily by 
reproduced with the following steps:

1.  Create a new dummy project for testing.  Make sure that the assert keyword is allowed.
2.  Create a new class, "Main".
3.  Make Main.java read as follows:

/**
 * Main line for tests.
 */
public final class Main
    {
    public void main (final String[] argv)
        {
        assert (false):("foobar");
        }
    }

4.  Save Main.java.
5.  Open another file in another editor.  Switch to that tab, and switch back to Main.java.
6.  Select some text and use Apple-C to try to copy it.
7.  See the error message I mentioned above.
Comment 2 Dani Megert CLA 2007-06-22 09:59:12 EDT
Get rid of deprecated state.
Comment 3 Dani Megert CLA 2007-06-22 10:04:30 EDT
.