Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 313016

Summary: Change the order of the @throws statements in the auto-generated comment
Product: z_Archived Reporter: Sylvia Tancheva <silviya>
Component: PDTAssignee: PHP Core <php.core-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: gadi
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Sylvia Tancheva CLA 2010-05-15 08:39:49 EDT
Consider the code:
function someFunc()
{
  // ..
  throw new FirstTypeException();

  // ..
  throw new SecondTypeException();

  // ..
  throw new ThirdTypeException(); 
}
Generate comment for the function.
Result:
/**
 * Enter description here ...
 * @throws ThirdTypeException
 * @throws SecondTypeException
 * @throws FirstTypeException
 */
Expected: The @throws statements should be in the right order of appearance and not in reverse way as they are currently.
Comment 1 Zhongwei Zhao CLA 2010-05-16 04:53:51 EDT
fixed in head
Comment 2 Gadi Goldbarg CLA 2010-05-17 08:57:38 EDT
Verified at PDT-2.2.0.v20100517

Ordered like expect

Closing this issue...

Verified by
Teodor Kirkov
teodor.k@zend.com