Community
Participate
Working Groups
I created an exception: MyCustonErrorExcpetion; In some part of the code, I throw this exception, and thought "I need to put a default message for constructor without arguments" So I copied the class name, went up to her, open quotes in default constructor: public MyCustonErrorExcpetion(){ super(""); // and paste inside quotes } The class name appeared inside the quotation marks, but was made a import for the same class
I assume paste-into-quoted-string is implemented in JDT/UI ...
See also bug 163700.
Typical workflow in JDT/Core: Create a sample program in a scratch project. When satisfied, create a JUnit test from the sample program, pasting the sample program into an empty string in the test method. Launch the test. Be greeted by "Errors exist in required project(s): org.eclipse.jdt.core.tests.compiler ... Find that the paste added bogus imports to the test class. I really think that smart paste should make a full switch between: either: pasting into code, so carry over all information from copy or: pasting into a string, so escape what needs escaping. I don't see *any* use of mixing these two modes. Should I re-open bug 163700 or will _this_ bug be considered?
(In reply to Stephan Herrmann from comment #3) > Should I re-open bug 163700 or will _this_ bug be considered? This bug is open, but not on the radar. Patches are welcome.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.