Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4649473
Votes 0
Synopsis Subsequent use of @throws for a particular exception are ignored.
Category doclet:tbd
Reported Against hopper
Release Fixed
State 11-Closed, duplicate of 4525364, bug
Priority: 4-Low
Related Bugs 4525364
Submit Date 08-MAR-2002
Description
Consider the following testcase
===============================
public class test
{
        /**
         *      Just to check whether all reasons for NullPointerException are documented.
         *      @throws NullPointerException for ReasonNo.1
         *      @throws NullPointerException for ReasonNo.2
         *      @throws ArithmeticException for ReasonNo.3
         *      @throws NullPointerException for ReasonNo.4
         */
        public void methodOne () throws NullPointerException, ArithmeticException
        {
        }
}


The Same Exception is documentd 3 times for various reasons, (one important being to increase readability of source files) and the Javadoc tool documents
only the first instance... 

Read below for the output by std.doclet,
=====================================================================
methodOne

public void methodOne()
               throws java.lang.NullPointerException,
                      java.lang.ArithmeticException

      Just to check whether all reasons for NullPointerException are documented. 

      Throws: 
            java.lang.NullPointerException - for ReasonNo.1 
            java.lang.ArithmeticException - for ReasonNo.3
==============================================================================

This behaviour is not documented, but highly desired. 
Work Around
N/A
Evaluation
This is one of many duplicates of 4525364 "javadoc ignores duplicate @throws tags (regression).  Closing out as a dupe.
  xxxxx@xxxxx   2002-03-08
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang