Book a Demo

Author Topic: Javadoc "@throws" versus "@exceptio  (Read 2646 times)

markwi

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Javadoc "@throws" versus "@exceptio
« on: January 17, 2006, 01:14:08 pm »
I'm a newcomer to the board, but could not find an answer in searching here.

When using the Java tag "throws" on an operation, the generated code says something like "throws Exception" but the Javadoc comment says "@exception Exception" (deprecated form?) instead of "@throws Exception".

Is this intended behavior, or a defect in the EA Java "JAVADOC_COMMENT" macro? Is there any way to fix it myself?

Thanks.

-- Mark

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Javadoc "@throws" versus "@exce
« Reply #1 on: January 17, 2006, 02:08:27 pm »
I'll have to verify that you're right, but if you are then it's a defect in the JAVADOC_COMMENT macro.

You can fix it yourself by doing something like the following.

Code: [Select]
$comment=%JAVADOC_COMMENT(genOptWrapComment)%
%REPLACE($comment,"@exception","@throws")%