Lines 84-89
Link Here
|
84 |
" <K, V> V foo(K key, V value) {\n" + |
84 |
" <K, V> V foo(K key, V value) {\n" + |
85 |
" return value;\n" + |
85 |
" return value;\n" + |
86 |
" }\n" + |
86 |
" }\n" + |
|
|
87 |
" void foo(int i, X<Object[]> x) {\n" + |
88 |
" }\n" + |
87 |
"}" |
89 |
"}" |
88 |
}; |
90 |
}; |
89 |
IJavaProject project = getJavaProject("AttachSourceTests"); |
91 |
IJavaProject project = getJavaProject("AttachSourceTests"); |
Lines 327-332
Link Here
|
327 |
" }", |
329 |
" }", |
328 |
method.getSource()); |
330 |
method.getSource()); |
329 |
} |
331 |
} |
|
|
332 |
/* |
333 |
* Ensures that the source of a generic method can be retrieved. |
334 |
* (regression test for bug 129317 Outline view inconsistent with code |
335 |
*/ |
336 |
public void testGeneric3() throws JavaModelException { |
337 |
IMethod method = this.genericType.getMethod("foo", new String[] {"I", "Lgeneric.X<[Ljava.lang.Object;>;"}); |
338 |
assertSourceEquals( |
339 |
"Unexpected source", |
340 |
"void foo(int i, X<Object[]> x) {\n" + |
341 |
" }", |
342 |
method.getSource()); |
343 |
} |
330 |
/** |
344 |
/** |
331 |
* Ensures that name ranges exists for BinaryMembers that have |
345 |
* Ensures that name ranges exists for BinaryMembers that have |
332 |
* mapped source. |
346 |
* mapped source. |