eclipse-modisco / org.eclipse.modisco

Eclipse Public License 2.0
0 stars 0 forks source link

Java source code generation failed #1031

Closed eclipse-modisco-bot closed 3 days ago

eclipse-modisco-bot commented 3 days ago

| --- | --- | | Bugzilla Link | 545748 | | Status | RESOLVED DUPLICATE of bug 543103 | | Importance | P3 normal | | Reported | Mar 25, 2019 09:43 EDT | | Modified | Mar 25, 2019 12:41 EDT | | Version | 1.2.0 | | Reporter | Ali Sardarian |

Description

Created attachment 277993\ java model file

with a simple Java model that created with Modisco Java discoverer.\ I can't use Java Generation plug-in to transform my model back into the *.java file

error log :\ Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 67, Size: 1

sample_for_modisco_java.xmi

eclipse-modisco-bot commented 3 days ago

By Fabien Giquel on Mar 25, 2019 12:41

Hi,

the underlying cause of the problem was in EMF release embedded within eclipse 2018-12 : see https://bugs.eclipse.org/bugs/show_bug.cgi?id=543103. It has been fixed in EMF 2.17.0.

So for instance you may download and use fresh "eclipse 2019-03" which includes the fix.

Note : in 2019-03, Modisco SDK is not directly available in update sites, you will have to indicate the two update sites in "Help>install new software.." before installing "Modisco SDK" feature :

http://download.eclipse.org/facet/updates/release/1.3.0/\ http://download.eclipse.org/modeling/mdt/modisco/updates/release/1.2.0/

This bug has been marked as a duplicate of bug 543103