Community
Participate
Working Groups
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1) Gecko/20090624 Firefox/3.5 (.NET CLR 3.5.30729) Build Identifier: Eclipse 3.5 I created this follow up to #288060 because they are not able to fix it themselves since it is located in the JDT framework. Unfortunately I could not reassign the Bug so I created this replacement and link to it. The Quick-Fix obtained by Ctrl-1 or Ctrl-2, L (and as well for class fields) foes not work if the resulting field/variable would be an array type. This is caused by a NPE for which the stacktrace is attached. Moreover this bug also happens for several other Quick-Fix selections like changing a Method by adding a parameter etc. The error always has in common the topmost few lines in the stacktrace. Reproducible: Always Steps to Reproduce: 1. Create a new empty MTJ project 2. Add a class with the following methods: public class TestClass { public int[] test() { return null; } public void test2() { this.test(); } } 3. Set the cursor to "this.test();" and press Ctrl-2 and then L 4. Nothing happens, but a stacktrace will appear in the .log file of the workspace. However this shortcut works fine for the same class if contained in a normal JavaSE project.
Created attachment 147072 [details] A sample stacktrace as visible in the logfile
Move to JDT/UI
I've taken bug 288060 to JDT/UI, so this is a dup now. *** This bug has been marked as a duplicate of bug 288060 ***