| Summary: | [move method] Refactor->Move an instance method to another causes IAE in SimpleName.setIdentifier | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Chris Leon <chris.leon> | ||||||
| Component: | UI | Assignee: | Markus Keller <markus.kell.r> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | daniel_megert, markus.kell.r | ||||||
| Version: | 3.6.2 | ||||||||
| Target Milestone: | 3.7 M7 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Chris Leon
Created attachment 192667 [details]
Stack trace
I checked 328554 and 328786 which seemed similar, but this stack trace is different so I assume the underlying cause is new. Just to clarify: you do this in the Java editor, right? (In reply to comment #3) > Just to clarify: you do this in the Java editor, right? That's correct. Refactor menu -> Move. Select the object I want to move the method to, and hit either preview or OK, then get the error. Snippet to reproduce (move A#foo(B) to B):
package p;
import com.example.Outer.Inner;
public class A {
public void foo(B b) {
Inner<String> i;
}
}
package p;
public class B {
}
package com.example;
public class Outer {
public static class Inner<E> {}
}
Created attachment 192766 [details]
Fix
Fixed in HEAD. |