Are using Rose 2001a?


SYMPTOM:

While reverse engineering my code, "String" is implemented as a class
Attribute, while "HashMap" is implemented as association, although
java.util.HashMap appears in the Fundamental Types.

I tried adding HashMap to the fundamental types, pressed apply and ok and
then when I brought up the list again it wasn't there.

CAUSE:

The fundamental types dialog does an exact match on the Java class name. In
the dialog, the HashMap class is listed as "java.util.HashMap", by it's
fully qualified name. Normally the java.util package is imported and
"HashMap" is used in the code.  

 When reverse engineering,  the HashMap reference is not matched up with the
list since the class names are different.

There is a defect in the code that does not allow the entry of a non
qualified name when the fully qualified name is present.

RESOLUTION:

If you click on "Remove Common JDK Classes", you can then add "HashMap" to
the list.  You can then click on "Add Common JDK Classes" and the class name
will still be there.

-----Original Message-----
From: Manley, Matt [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 26, 2002 10:54 AM
To: '[EMAIL PROTECTED]'
Subject: (ROSE) Reverse Engineering & Java Fundamental Types





I am trying to reverse-engineer some java classes that have attributes like
HashMap & ArrayList, but am not getting
this listed as attributes.   They are being setup as Associations.   I've
placed the rt.jar in the classpath, using JDK1.3, (Rational Solution ID
#13860).  Both java.util.ArrayList & java.util.HashMap are listed in the
"Fundamental Types" under Project Specification for Java Reverse
Engineering, (First two entries past the primitives), and I still cannot get
this to be reverse engineered as attributes................   

Is there something else I should be doing?

Below is a sample .java file that I'm using.

public class TestObj
{
  private static final String s1  = "One";
  private static final String s2  = "Two";
  private static final String s3  = "Three";

  private HashMap       theMap;
  private ArrayList     theList;

  public TestObj()
  {
  }

}


Eric Manley


************************************************************************
* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
*
* Post or Reply to: [EMAIL PROTECTED]
* Subscription Requests: [EMAIL PROTECTED]
* Archive of messages:
*    http://www.rational.com/support/usergroups/rose/rose_forum.jsp
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
*    To: [EMAIL PROTECTED]
*    Subject: <BLANK>
*    Body: unsubscribe rose_forum
*************************************************************************
************************************************************************
* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
*
* Post or Reply to: [EMAIL PROTECTED]
* Subscription Requests: [EMAIL PROTECTED]
* Archive of messages:
*    http://www.rational.com/support/usergroups/rose/rose_forum.jsp
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
*    To: [EMAIL PROTECTED]
*    Subject: <BLANK>
*    Body: unsubscribe rose_forum
*************************************************************************

Reply via email to