Lines 5483-5486
Link Here
|
5483 |
workingCopy.discardWorkingCopy(); |
5483 |
workingCopy.discardWorkingCopy(); |
5484 |
} |
5484 |
} |
5485 |
} |
5485 |
} |
|
|
5486 |
|
5487 |
/* |
5488 |
* Ensures that no exception is thrown in case of a syntax error in method parameter declarations |
5489 |
* (regression test for bug 200080 Endless illegal arg exceptions from java editor's ASTProvider) |
5490 |
*/ |
5491 |
public void test0609() throws CoreException { |
5492 |
ICompilationUnit workingCopy = null; |
5493 |
try { |
5494 |
workingCopy = getWorkingCopy( |
5495 |
"/Converter/src/X.java", |
5496 |
"public class X {\n" + |
5497 |
" void foo(a, b, ) {\n" + |
5498 |
" if\n" + |
5499 |
" }\n" + |
5500 |
"}" |
5501 |
); |
5502 |
ASTNode cu = workingCopy.reconcile(AST.JLS3, true, true, null, null); |
5503 |
assertNotNull("Should get an AST", cu); |
5504 |
} finally { |
5505 |
if (workingCopy != null) |
5506 |
workingCopy.discardWorkingCopy(); |
5507 |
} |
5508 |
} |
5509 |
|
5486 |
} |
5510 |
} |