Bug 48523 - @throws reference incorrectly warned as not declared
Summary: @throws reference incorrectly warned as not declared
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.0 M6   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL: frederic_fusier@fr.ibm.com
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-11 13:57 EST by Frederic Fusier CLA
Modified: 2003-12-16 10:54 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frederic Fusier CLA 2003-12-11 13:57:45 EST
This happens in an overriding method which has a @see reference to its 
superclass method:
File X.java:
  import java.io.IOException;
  public class X {
	public void foo() throws IOException {}
  }
File Y.java:
  import java.io.IOException;
  public class Y extends X {
	/**
	 * @throws IOException
	 * @see X#foo()
	 */
	public void foo() throws IOException {}
  }

Referenced class IOException in @throws tag is warned as not declared as it is 
obviously not true...
Comment 1 Frederic Fusier CLA 2003-12-11 14:02:27 EST
Since bug 47339 fix, compiler does not report missing problems in overriding 
method which has a @see reference to a superclass or interface corresponding 
method.

Unfortunately test to report problems was misplaced and have this wrong side 
effect...
Comment 2 Frederic Fusier CLA 2003-12-13 16:30:30 EST
Fixed.

In Javadoc.resolveThrowsTags(), reportMissing test is done just before calling 
method of ProblemReporter...

Test case added in jdt.core.tests.compiler.regression.JavadocTestMixed
Comment 3 David Audel CLA 2003-12-16 10:54:57 EST
Verified for 3.0M6