dukeboard/kevoree-modeling-framework

java.lang.ArrayIndexOutOfBoundsException: 31 on Kevoree MM

Closed this issue · 4 comments

_metaModel = new org.kevoree.modeling.api.abs.AbstractMetaModel("Kevoree", -1);
        org.kevoree.modeling.api.meta.MetaClass[] tempMetaClasses = new org.kevoree.modeling.api.meta.MetaClass[31];
    // ...
    // DIVISION BY ZERO §
    tempMetaClasses[31] = org.kevoree.meta.MetaNodeType.getInstance();
    // ....
    ((org.kevoree.modeling.api.abs.AbstractMetaModel) _metaModel).init(tempMetaClasses);

It looks like init code of Meta Element of KMF. Thus generated. It seems to
be linked to the implementation of Enums. We have to check the indexes
indeed.
Le 14 janv. 2015 19:27, "Brice Morin" notifications@github.com a écrit :

Yes.... but is that your code? or KMF code? In the first case, you do
something wrong, it crashes, so what? In the other case... well... :-)


Reply to this email directly or view it on GitHub
#72 (comment)
.

I have fixed, release in process, was just a missing exclusion in the brand new ENUM process. Really sorry for that.
I also push a very short example for you on the Kevoree sample in the test directory to ensure the tracking. Will be release into the 4.8.1 version.

V4.8.1 under propagation in maven repositories

Fixed in 4.8.1