Bug 49368

Summary: Javadoc warning incorrectly removed from Problems View
Product: [Eclipse Project] JDT Reporter: Gary Gregory <ggregory>
Component: CoreAssignee: Frederic Fusier <frederic_fusier>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: 3.0 M9   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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