Hi Lakshmeesh,
I have experienced problems similar to the ones you
describe in points 1 and 2 in your email. I was using
Rose 98, while doing Java reverse engineering.
For example, if I have two classes with the same name
but in different packages, say "package1.MyClass" and
"package2.MyClass", then Rose can fail to resolve the
class name "MyClass".
One way to get around this problem is to fully specify
the package structure in the source files (every time
the "MyClass" specifier is used).
The following code shows the point:
************************************************
import package1.*; // MyClass is part of package1
....
MyClass c = new MyClass();
// this may not work. Rose 98 cofuses between
"package1.MyClass" and "package2.MyClass"
package1.MyClass c = new package1.MyClass();
// this should work.
I am not sure if specifying the package sturcture in
the import statement will help: i.e.
import package1.MyClass; (instead of: import
package1.*; )
************************************************
Note that this workaround is needed because Rose 98
does not handle well import statements. Specifying
the full package structure for every statement is
cumbersome. Please let me know if you find any better
way of handling these problems.
I hope this helps.
Regards,
Emer.
--- Lakshmeesh <[EMAIL PROTECTED]> wrote:
>
> Hello,
> Below I have listed the problems which I have faced
> while using the
> Rational Rose(Rational Rose Professional J Edition)
> tool, while doing reverse and forward engineering .
>
> Problem Definition:
>
> 1) If there are inner classes with the same name in
> different classes
> within the same package ,while doing reverse
> engineering and then
> doing forward engineering, it fails.
>
> 2) If there are classes with the same name in
> multiple packages, while
> doing reverse engineering and then generating
> code , it fails to resolve the class name.
>
> 3) If a class implements an interface and the
> methods in the interface
> is properly implemented , after doing reverse
> engineering and then forward engineering, new dummy
> methods(which are
> mentioned in the interface) has been added
>
> and the actual methods has been commented out.
>
> 4)If a class extends another class,which is in
> different package , while
>
> generating code from the class diagram, it fails
> to put import statements, so that the .java file
> generated is not
> compilable.
>
> I need help to solve this problem.
>
> Thanks in advance
> Regards
>
> Lakshmeesh
>
__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/
************************************************************************
* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
*
* Admin.Subscription Requests: [EMAIL PROTECTED]
* Archive of messages:
http://www.rational.com/products/rose/usergroups/rose_forum.jtmpl
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
*
* To: [EMAIL PROTECTED]
* Subject:<BLANK>
* Body: unsubscribe rose_forum
*
*************************************************************************