Bug 49368 - Javadoc warning incorrectly removed from Problems View
Summary: Javadoc warning incorrectly removed from Problems View
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0 M9   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-28 20:06 EST by Gary Gregory CLA
Modified: 2004-05-10 06:01 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gary Gregory CLA 2003-12-28 20:06:15 EST
If you have a class with static methods like:

public static Object[] subarray(Object[] array, int start, int stop)
public static int[] subarray(int[] array, int start, int stop)
public static long[] subarray(long[] array, int start, int stop)

etc, where the only tag missing from all of these method's Javadoc is the
@return tag, and you add one @return tag to one method, all warnings for all
methods about missing return tags disappear. Only the one warning should go away. 

I think I have also seen this with @param.

Version 3.0.m6.
Comment 1 Frederic Fusier CLA 2004-03-24 16:15:50 EST
Cannot reproduce using build I200403240800.
Here's my test case (if I've well understood your problem):
public class Test {
/**
 * @param array
 * @param start
 * @param stop
 */
public static Object[] subarray(Object[] array, int start, int stop) {
 return null;
}
/**
 * @param array
 * @param start
 * @param stop
 * @return
 */
public static int[] subarray(int[] array, int start, int stop) { return null; }
/**
 * @param array
 * @param start
 * @param stop
 */
public static long[] subarray(long[] array, int start, int stop) {
 return null;
}
}

In this case problems are signaled on Object[] and long[] return of first and 
third method. Changing @return from method does not matter, Javadoc: missing 
tag for return type is always well displayed.

May you be more precise on failing test case?
Comment 2 Philipe Mulet CLA 2004-05-10 06:01:52 EDT
Cannot reproduce. Closing