Book a Demo

Author Topic: constructor and finalize method  (Read 4279 times)

AndrewDo

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
constructor and finalize method
« on: June 23, 2003, 09:22:45 am »
Hi!

1. I create new class. Put it on class diagram. There is no methods in the class!!!
2. I generate java code (forward engineering) only for this class.
3. Then I view source code. There is a constructor and finalize method in the class.
4. I synchronize model (reverse engineering) and constructor and finalize method appear on the diagramm?????

Does anyone have some ideas?
Thank you!

fwoolz

  • EA User
  • **
  • Posts: 435
  • Karma: +0/-0
  • We have met the enemy, and he is us.<Pogo, 1970>
    • View Profile
Re: constructor and finalize method
« Reply #1 on: June 23, 2003, 01:39:17 pm »
AD,

Under 'Local Options', there is a selection called 'Object Lifetimes' (under the heading '[Code] Generation') where options to generate constructors & destructors automatically can be set/cleared.  Your code generation options are apparently set to generate these methods.

Cheers,
Fred Woolsey
Fred Woolsey
Interfleet Technology Inc.

Always be ready to laugh at yourself; that way, you beat everyone else to the punch.