Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: Rob_Lam on November 29, 2004, 08:30:14 am

Title: Reverse Engineering from Java
Post by: Rob_Lam on November 29, 2004, 08:30:14 am
I'm fairly new to this product so...

I'm trying to reverse engineer some java code to display the class diagrams.  I problem I have is that many of the classes were written to define methods as, eg.:

public class ClassName
{
    int _variable1;

    public int getInfo
                        (int aParam1,
                         int aParam2)    
   {
        code...
   }
}

when I reverse this code,

The method getInfo ( ), gets translated as an attribute in the class diagram.

When I change the method definition to :

    public int getInfo (int aParam1,  int aParam2)

The method gets translated to a method properly in the diagram.

Aside from changing all the classes to this convention (of which there are many classes), is there something else I can do, or am I missing something?

Thanks in advance,
Rob
Title: Re: Reverse Engineering from Java
Post by: Eve on November 29, 2004, 01:32:31 pm
I've just fixed the problem, so I'd suggest that you wait until build 741 is released.  I wouldn't expect it to be more than a couple of weeks away.

Simon