facebook

UML forward eng turns interface into abstract pojo class?

  1. MyEclipse Archived
  2.  > 
  3. UML Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #270632 Reply

    mikekonikoff
    Member

    Why are the interfaces in my UML diagram converted to abstract classes when I Generate Java…? I have defined many abstract methods for the interfaces in UML, but the POJOs are generated as empty abstract classes: no methods, and the wrong type. What is causing this?

    #270679 Reply

    Riyad Kalla
    Member

    Are you sure you are defining the types correctly? I just tried this with the following test project and the class and interface were correctly generated.

    #273785 Reply

    Gary Bauer
    Member

    Hi. The interface in the sample UML project in the previous post generates the following interface when I forward engineer:

    public interface MyInterface {
    public void doSomething(){}}

    This won’t compile as the method has a body. I expected:

    public interface MyInterface {
    public void doSomething()}

    I am using ME 6.0.0 M1.

    Is it me or ME doing something wrong?

    Thanks!

    #273883 Reply

    Riyad Kalla
    Member

    elgaz,
    This looks like a bug. Thank you for reporting it.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: UML forward eng turns interface into abstract pojo class?

You must be logged in to post in the forum log in