| Summary: | [refactoring] Fix enablement and precondition checking of Extract... refactorings for packages names and annotations | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Markus Keller <markus.kell.r> | ||||||
| Component: | UI | Assignee: | Markus Keller <markus.kell.r> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | ||||||||
| Version: | 3.6 | ||||||||
| Target Milestone: | 3.7 M1 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Markus Keller
When bug 303617 is fixed, JavaTextSelection#resolveInAnnotation() can be used to hide some refactorings for annotations and annotation arguments. Test class: package xy; import java.util.ArrayList; @Annotation("all") //@Annotation({"all", "rawtypes"}) //@Annotation(value= "all") //@Annotation(value= {"all", "rawtypes"}) public class Try extends ArrayList { @Annotation("all" + "a") java.util.Vector v= new Bla(); void m() { @Annotation(value= "all" + "a") final java.util.Vector v= new Bla(); } } @interface Annotation { String[] value(); } Created attachment 172240 [details]
Fix
Fixed in HEAD. Created attachment 172595 [details]
Additional fix for failing test
|