Commit 9f6d161
committed
More error/NPE fixes in completion
- handle completing package-qualified method parameter type
- do not suggest overriding existing or declaring new methods in
annotation type declarations
- when building override method completions, if the `IMethod` of a given
method binding cannot be found, use the parameter names from
the bindings instead
- prevent NPE when attempting to suggest completion for a method with
an incomplete parameter type
Signed-off-by: David Thompson <[email protected]>1 parent ee0beeb commit 9f6d161
File tree
3 files changed
+19
-9
lines changed- org.eclipse.jdt.core.javac/src/org/eclipse/jdt/internal/codeassist
3 files changed
+19
-9
lines changedLines changed: 12 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
805 | 805 | | |
806 | 806 | | |
807 | 807 | | |
808 | | - | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
809 | 811 | | |
810 | 812 | | |
811 | 813 | | |
| |||
829 | 831 | | |
830 | 832 | | |
831 | 833 | | |
832 | | - | |
| 834 | + | |
833 | 835 | | |
834 | 836 | | |
835 | 837 | | |
| |||
1172 | 1174 | | |
1173 | 1175 | | |
1174 | 1176 | | |
1175 | | - | |
| 1177 | + | |
1176 | 1178 | | |
1177 | 1179 | | |
1178 | 1180 | | |
| |||
3532 | 3534 | | |
3533 | 3535 | | |
3534 | 3536 | | |
3535 | | - | |
| 3537 | + | |
| 3538 | + | |
| 3539 | + | |
| 3540 | + | |
| 3541 | + | |
3536 | 3542 | | |
3537 | 3543 | | |
3538 | 3544 | | |
| |||
3794 | 3800 | | |
3795 | 3801 | | |
3796 | 3802 | | |
3797 | | - | |
| 3803 | + | |
3798 | 3804 | | |
3799 | 3805 | | |
3800 | | - | |
| 3806 | + | |
3801 | 3807 | | |
3802 | 3808 | | |
3803 | 3809 | | |
| |||
org.eclipse.jdt.core.javac/src/org/eclipse/jdt/internal/codeassist/DOMCompletionEngineBuilder.java
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
77 | 81 | | |
78 | 82 | | |
79 | 83 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
| 126 | + | |
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| |||
0 commit comments