Book a Demo

Author Topic: Problem - Javadoc tags in C++  (Read 6366 times)

wink

  • EA User
  • **
  • Posts: 48
  • Karma: +0/-0
  • Montjoie, que jamais ne choit!
    • View Profile
Problem - Javadoc tags in C++
« on: December 06, 2005, 01:22:48 am »
Hello everybody,

I just wonder if anybody has had this problem?

I need to document return values of class methods and would like to use the standard javadoc tag @return in the method documentation

I looked everywhere but I can not find a place where I can type it. So I tried to write it in the same place as the arguments and reverse engeneer it, but AE treats it like standard comment text.

example:
Code: [Select]
/**
* This is a class method that takes 2 arguments
* It returns an int.
*
* @param p_SomeBool    this is a boolean argument
* @param p_SomeLong    This is a long integer argument
* @return TheReturn
*/
int CSomeClass::DoSomething(bool p_SomeBool, long p_SomeLong){


return 0;
}

Any ideas?

Many thanks in advance,

cheers,
Manfred
Best regards,
Manfred

wink

  • EA User
  • **
  • Posts: 48
  • Karma: +0/-0
  • Montjoie, que jamais ne choit!
    • View Profile
Re: Problem - Javadoc tags in C++
« Reply #1 on: December 15, 2005, 04:56:51 am »
Bump!

Really nobody to give me a hint?
:'(

cheers,
Manfred
Best regards,
Manfred

mikewhit

  • EA User
  • **
  • Posts: 608
  • Karma: +0/-0
  • Accessing ....
    • View Profile
Re: Problem - Javadoc tags in C++
« Reply #2 on: December 15, 2005, 08:37:55 am »
Try reporting it as a bug - missing functionality ...?

wink

  • EA User
  • **
  • Posts: 48
  • Karma: +0/-0
  • Montjoie, que jamais ne choit!
    • View Profile
Re: Problem - Javadoc tags in C++
« Reply #3 on: December 15, 2005, 08:45:39 am »
Hi Mike,
well I guess you're right...

I'll try that, but I hoped that there was somebody with a work-around... ;)

have a nice day,

Manfred
Best regards,
Manfred

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Problem - Javadoc tags in C++
« Reply #4 on: December 15, 2005, 01:25:10 pm »
Hi Manfred,

Because there is no place to document it, EA maintains the @return tag inside the method note.  This is deliberate.

Is there a reason why it isn't appropriate?

wink

  • EA User
  • **
  • Posts: 48
  • Karma: +0/-0
  • Montjoie, que jamais ne choit!
    • View Profile
Re: Problem - Javadoc tags in C++
« Reply #5 on: December 16, 2005, 12:57:43 am »
Hi Simon,

well it is just not coherent with the other tags such as the @param tags for method arguments who are generated automatically.

I thought it would be more logical to document the return value just as any argument. This way you'd be independent from what kind of ducumentation you use.

I'd like to see for instance an aditional field in the "return type advanced" dialog where you could document the meaning and possible values for the return type.

Do you think that this would be possible?

have a nice day,
cheers,
Manfred
Best regards,
Manfred

mikewhit

  • EA User
  • **
  • Posts: 608
  • Karma: +0/-0
  • Accessing ....
    • View Profile
Re: Problem - Javadoc tags in C++
« Reply #6 on: December 16, 2005, 06:30:50 am »
Sounds logical to me ...

wink

  • EA User
  • **
  • Posts: 48
  • Karma: +0/-0
  • Montjoie, que jamais ne choit!
    • View Profile
Re: Problem - Javadoc tags in C++
« Reply #7 on: December 18, 2005, 11:45:38 pm »
Hi Mike,

Thanks for your support!
;)

good day, ladies & gentlemen!

Manfred
Best regards,
Manfred

sl@sh

  • EA User
  • **
  • Posts: 85
  • Karma: +0/-0
    • View Profile
Re: Problem - Javadoc tags in C++
« Reply #8 on: June 06, 2007, 04:39:34 am »
Sorry for digging this up, but aparently nothing has changed within the past 18 months.  :(

I, too, would greatly appreciate added support to documenting return values.

The suggestion to add that part of the documentation to the notes section isn't really all that helpful: It requires EA modelers to keep track of methods and manually insert the '@return' bit. If at a later point document style gets changed, all the method notes need to be updated!

Or has this been added in version 7.0? Haven't had the time to check out the beta yet...

P.S.: I have searched the forum (which is how I found this thread), and the best I could find was the suggestion made in this (and also in another) thread: adding the @return tag explicitely in the notes section. IMO this is a bad solution, as pointed out above.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Problem - Javadoc tags in C++
« Reply #9 on: June 07, 2007, 01:33:13 pm »
No, there hasn't been any change to this area.