Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 313016 - Change the order of the @throws statements in the auto-generated comment
Summary: Change the order of the @throws statements in the auto-generated comment
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PHP Core CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-15 08:39 EDT by Sylvia Tancheva CLA
Modified: 2020-05-14 11:16 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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