### Eclipse Workspace Patch 1.0 #P org.eclipse.jdt.core.tests.model Index: src/org/eclipse/jdt/core/tests/model/CompletionTests.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/CompletionTests.java,v retrieving revision 1.146 diff -u -r1.146 CompletionTests.java --- src/org/eclipse/jdt/core/tests/model/CompletionTests.java 15 Feb 2007 14:52:05 -0000 1.146 +++ src/org/eclipse/jdt/core/tests/model/CompletionTests.java 15 Feb 2007 15:02:08 -0000 @@ -1110,6 +1110,41 @@ this.workingCopies[0].codeComplete(cursorLocation, requestor, this.wcOwner); assertResults( + "IZZBException[TYPE_REF]{IZZBException, test, Ltest.IZZBException;, null, null, " + (R_DEFAULT + R_INTERESTING + R_CASE + R_UNQUALIFIED + R_EXCEPTION + R_NON_RESTRICTED) + "}\n" + + "IZZException[TYPE_REF]{IZZException, test, Ltest.IZZException;, null, null, " + (R_DEFAULT + R_INTERESTING + R_CASE + R_UNQUALIFIED + R_EXCEPTION + R_NON_RESTRICTED) + "}", + requestor.getResults()); +} +public void testCatchClauseExceptionRef13b() throws JavaModelException { + this.workingCopies = new ICompilationUnit[1]; + this.workingCopies[0] = getWorkingCopy( + "/Completion/src/test/Test.java", + "package test;"+ + "class IZZAException extends Exception {\n" + + "}\n" + + "class IZZBException extends Exception {\n" + + "}\n" + + "class IZZException extends IZZAException {\n" + + "}\n" + + "public class Test {\n" + + " public void throwing() throws IZZException {}\n" + + " public void foo() {\n" + + " try {\n" + + " throwing();\n" + + " }\n" + + " catch (IZZAException e) {\n" + + " }\n" + + " catch (IZZ) {\n" + + " }\n" + + " }" + + "}\n"); + + CompletionTestsRequestor2 requestor = new CompletionTestsRequestor2(true); + String str = this.workingCopies[0].getSource(); + String completeBehind = "IZZ"; + int cursorLocation = str.lastIndexOf(completeBehind) + completeBehind.length(); + this.workingCopies[0].codeComplete(cursorLocation, requestor, this.wcOwner); + + assertResults( "IZZBException[TYPE_REF]{IZZBException, test, Ltest.IZZBException;, null, null, " + (R_DEFAULT + R_INTERESTING + R_CASE + R_UNQUALIFIED + R_EXCEPTION + R_NON_RESTRICTED) + "}", requestor.getResults()); } #P org.eclipse.jdt.core Index: buildnotes_jdt-core.html =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/buildnotes_jdt-core.html,v retrieving revision 1.5697 diff -u -r1.5697 buildnotes_jdt-core.html --- buildnotes_jdt-core.html 15 Feb 2007 14:52:12 -0000 1.5697 +++ buildnotes_jdt-core.html 15 Feb 2007 15:02:11 -0000 @@ -52,7 +52,9 @@