Book a Demo

Author Topic: Code Generation & Inherited Interfaces  (Read 2408 times)

austin_hastings

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Code Generation & Inherited Interfaces
« on: September 19, 2005, 11:14:33 pm »
Next problem:

I've got a parallel class/interface tree like:

interface IElement;
interface IConnection extends IElement;

class Element implements IElement;
class Connection extends Element implements IConnection;

When I generate code for the Connection class, the
output includes empty methods that have already been
specified (and are NOT overridden) in the Element class.

So what gives? Why is EA generating IElement methods in my IConnection class when (1) I didn't click the little "I want to override this method" box at the time I generalized Element; and (2) Element already defines those methods?

Help?

=Austin

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Code Generation & Inherited Interfaces
« Reply #1 on: September 20, 2005, 04:22:03 pm »
It looks like that is a bug.

We'll be fixing it, but until then it is a bug in a feature that can be turned off.

Open the local options dialog.   (Tools | Options)
Open the Attribute/Operations page.
Uncheck "Generate methods for implemented interfaces".

Simon.