Book a Demo

Author Topic: problem with the java code generator  (Read 2941 times)

ericc

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
problem with the java code generator
« on: January 23, 2010, 12:31:51 am »
Hallo,
i have a problem with the java code generator.
I use a "realize" connector between Class1 and Class2, and an "Generalize" connector between Class1 and Class3.

The generated code looks thus:
"public class Class1 extends Class2 Class3 { "

I became expect:
"public class Class1 extends Class3 implements Class3 { "

What can i do then ?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: problem with the java code generator
« Reply #1 on: January 23, 2010, 01:13:35 am »
Are you sure the Class3 is an interface?
In EA a class with stereotype <<interface>> is not the same as a "real" interface.
Try changing the type by selecting the element and then selecting the menu Element/Advanced/Change Type

Geert

ericc

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: problem with the java code generator
« Reply #2 on: January 23, 2010, 01:24:53 am »
Thank you !