Sometimes, it is easier to say than done. I don't have the external
CLASSPATH
environment variable set up instead I've used the internal way.
The problem went away
when the source code is changed to use the fully qualified import statement
(e.g. import x.y.z;)
or one and only that file is reversed engineered.
And the problem with Rose, it can't distinguish between what is Garbage
and what is real.
I agree that the problem may have something to with "what order your
directories were in the classpath".
Unfortunately, we have gone through that excercise once and the problem
still persist.
Rudy
"Norris, Davyd" wrote:
Hi Rudy,> Hi Anthony,
>
> I agreed its difficult, but it doesn't mean the problem is
> not existing as it
> is consistently appearing
> everytime we try to do any reverse engineering java code for
> the past one year.I can understand your frustrations but everything you are saying points to
problems with your classpath environments - remember that Rose is actually a
Java compiler - it compiles the Java into UML. This means that you have to
set it up with the correct and consistent environment like other IDEs.Also like other IDEs, we have an internal as well as external way of setting
this up. Differences or omissions in these values are the most common cause
of problems - as it is for any other Java environment.>
> Large number of files = ~50 - ~200 java files.
> The size for each java file averages about 100-2000 lines of
> code where all
> kinds of java features
> are used (e.g. inner classes, non-public classes, abstract classes,
> inheritance, interface, etc.)
> Our classpath expand towards 5 different directories.These are not uncommon project stats - I have had quite a few that meet or
exceed these specs.>
> The problem is not consistent; that is, I can saved the Rose
> model file and
> give it to the support
> (as I have done before) when the error occurred. But when
> the model is
> reloaded with a different
> Rose session, Rose do not produce the same error. I think Rose is not
> initializing some variable
> properly at the start of reverse engineering.I think this could be your classpath variables that are not being
initialised. Are some folks using the CLASSPATH environment variable and
others using Rose? Do some folks have virtual path map variables set and
others not? Are you setting up your environment and not saving the model
afterwards? All these can lead to the behaviour you mention.
-- Rudy Zulkarnain :-) Software Engineer email: [EMAIL PROTECTED] Cisco Systems, Inc. phone: (703) 484-5228 Optical Transport Business Unit
