Re: [Jepp-users] Array element change done in Python not visible in Java
Brought to you by:
mrjohnson0
From: Mike J. <mi...@pu...> - 2012-03-06 07:18:00
|
Hi, I think you need to call ``boolArray.commit()`` in Python. It's a performance enhancement in JNI… Thanks, Mike On Feb 28, 2012, at 5:18 AM, Marcin Zajączkowski wrote: > Hello > > Playing with Jepp I've got following situation. > > Java: > boolean boolArray[] = new boolean[] {false, true, false}; > jep.set("boolArray", boolArray); > > jep.runScript(SCRIPT_PATH + SCRIPT2); > > assertThat(boolArray[0]).isEqualTo(true); > > Python: > boolArray[0] = 1 > #following line is required to see changes in Java code > #print Arrays.toString(boolArray) > > I wonder is it normal? > > Regards > Marcin > > > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Jepp-users mailing list > Jep...@li... > https://lists.sourceforge.net/lists/listinfo/jepp-users |