Project: JDT
Bug 168691 [create on paste] Source paste cannot handle simple syntax errors
Reported: 2006-12-20 09:36:42 | Status: resolved fixed

3.3 M4 I often have snippets in bug reports that do not compile. In such situations the pasting source feature simply gives up with an error dialog. It should handle such scenarios gracefully. Try this: ------------%<-------------- class Test { /** !!! this line breaks it !!! void foo() { doSomething(); } } ------------%<--------------

Files changed in fix:
org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/reorg/PasteAction.java