### Eclipse Workspace Patch 1.0 #P org.eclipse.jdt.core.tests.compiler Index: src/org/eclipse/jdt/core/tests/compiler/regression/JavadocBugsTest.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocBugsTest.java,v retrieving revision 1.20 diff -u -r1.20 JavadocBugsTest.java --- src/org/eclipse/jdt/core/tests/compiler/regression/JavadocBugsTest.java 13 Mar 2006 18:41:24 -0000 1.20 +++ src/org/eclipse/jdt/core/tests/compiler/regression/JavadocBugsTest.java 22 Mar 2006 16:08:53 -0000 @@ -3997,6 +3997,7 @@ "----------\n" ); } + /** * Bug 128954: Javadoc problems with category CAT_INTERNAL * @see "http://bugs.eclipse.org/bugs/show_bug.cgi?id=128954" @@ -4176,4 +4177,37 @@ } ); } + + /** + * Bug 132813: NPE in Javadoc.resolve(Javadoc.java:196) + log swamped + * @see "http://bugs.eclipse.org/bugs/show_bug.cgi?id=132813" + */ + public void testBug132813() { + runNegativeTest( + new String[] { + "Test.java", + "public class X { \n" + + " /** */ \n" + + " public Test() {}\n" + + " /** */\n" + + " public test() {}\n" + + "}\n" }, + "----------\n" + + "1. ERROR in Test.java (at line 1)\n" + + " public class X { \n" + + " ^\n" + + "The public type X must be defined in its own file\n" + + "----------\n" + + "2. ERROR in Test.java (at line 3)\n" + + " public Test() {}\n" + + " ^^^^^^\n" + + "Return type for the method is missing\n" + + "----------\n" + + "3. ERROR in Test.java (at line 5)\n" + + " public test() {}\n" + + " ^^^^^^\n" + + "Return type for the method is missing\n" + + "----------\n" + ); + } }