Issue #304

Reverse engineering using "String"

Added by Djawida D 8 months ago. Updated 8 months ago.

Status:ResolvedStart date:05 September 2016
Priority:MediumDue date:
Assignee:Christophe Demeulemeester% Done:

50%

Category:-
Target version:-

Description

Hi, I’m trying a basic example where I create a class with a string attribute. The code generation works well. However when I modify the code (making the attribute public, for example), I get an error message “Type not found: String”. I noticed that in the model the type is written with a small “s”–“string” and in the code with a capital “S”–“String”, but I guess there must be a wrapper to handle this. Could you please help me to fixe that. Note that I’m using the 3.4 version of Modelio. Thanks

AccessibleClasses.png (14.9 KB) Christophe Demeulemeester, 06 September 2016 10:42

JDK.png (38.6 KB) Christophe Demeulemeester, 06 September 2016 10:42

AccessibleClassesCommand.png (34.1 KB) Christophe Demeulemeester, 06 September 2016 10:42

History

#1 Updated by Christophe Demeulemeester 8 months ago

Hi,

This happens because either the ‘JDK’ parameter value of the Java Designer module is wrong, or if the ‘Accessibles classes’ does not point to the ‘rt.jar’ of the JDK.

To configure the JDK, go to ‘Configuration\Modules\Java Designer\Directories\JDK’ parameters and give your actual JDK path :

To set the ‘rt.jar’ in the ‘Accessibles classes’, select the root package of your project and launch the ‘Java Designer\Configuration\Edit accessible classes’ command :

This will solve your problem.

Best regards, cde.

Also available in: Atom PDF