Book a Demo

Author Topic: EA and Java Generics  (Read 2391 times)

moacsjr

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
EA and Java Generics
« on: July 13, 2005, 08:44:33 am »
Hello, ::)

I want to no know how EA will treat Java Generics Feature?

Tank's

Moa.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: EA and Java Generics
« Reply #1 on: July 13, 2005, 03:57:29 pm »
The easiest way to see is to play around a bit with an import and some generation.

My summary.  If you do an import you should see that class parameters (on the detail tab of class properties) get filled.  The type field gets given the constraints on what the type can be.

Reverse engineering doesn't set instantiation on that same tab.  Instead it sets the parent to MyClass<int>, just the same as it sets the type for attribute, operation and parameter types.

When you're modelling you can also create a generalization link to a parameterised class, and in the child class set it to instantiated and type the instantiation into the arguments field.  (In the example above "int")

Simon