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: 4748246
Votes 0
Synopsis Doclet API: Doc.position() needs clarification
Category doclet:tbd
Reported Against 1.4
Release Fixed 1.4.2(mantis)
State 10-Fix Delivered, bug
Priority: 4-Low
Related Bugs
Submit Date 16-SEP-2002
Description




Doc.position() says it returns null "if no position is
available". The conditions under which that may be true
need to be documented.

Neal wrote: A default constructor will return null, because
    it has no location in the source file.

The comment also says it returns "the source position of the
documented entity".

To me, that read as "first line of the comment", which is
hopelessly wrong. A sentence which is less open to misinterpretation
would be helpful. Maybe: "The position in the source file of
the first line of the declaration for the program element that the
comment documents." (Accurate, but verbose. Shorter would be better.)

======================================================================
Work Around





======================================================================
Evaluation
Fixed as suggested.
  xxxxx@xxxxx   2002-10-03
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang