Book a Demo

Author Topic: Reverse engineering Java collections  (Read 4334 times)

mbc

  • EA User
  • **
  • Posts: 237
  • Karma: +1/-0
  • Embedded software developer
    • View Profile
Reverse engineering Java collections
« on: March 26, 2010, 08:12:32 pm »
Hi everybody

I am a long time user (8+ years, I think) of EA for C++, but now I am just starting to use it with Java.


When I reverse engineer this:

Code: [Select]
public class MyFirstClass {
      protected List<MySecondClass> myListOfObjects = new ArrayList<MySecondClass>();
}

public class MySecondClass {
}

then I would expect a diagram with 2 classes with an association from MyFirstClass to MySecondClass with *-multiplicity.
However, no association is created. I have tried setting "List" as "default collection class" in Java code generation options, but apparently that makes no difference.

I hope someone has a solution to this. I have not been active on this forum for years, but back in the day Geoff Sparks and his people were always very quick with helpful replies.

Best regards,
Mikkel

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Reverse engineering Java collections
« Reply #1 on: March 26, 2010, 08:40:17 pm »
Mikkel,

Generics are not supported for reverse engineering.
You are the n'th user who needs it.
Please send a formal feature request to Sparx using the link on the bottom of the page.
If enough people request it they might give this feature priority.

Geert

mbc

  • EA User
  • **
  • Posts: 237
  • Karma: +1/-0
  • Embedded software developer
    • View Profile
Re: Reverse engineering Java collections
« Reply #2 on: March 26, 2010, 10:19:59 pm »
Hi Geert,

Thank you for your quick reply. I will send a feature request.

Mikkel