Issue #887 has been reported by Soisik Froger.

----------------------------------------
Bug #887: JS array are not properly converted to java list in java 8
http://tools.lsc-project.org/issues/887

Author: Soisik Froger
Status: New
Priority: Normal
Assigned to: 
Category: Core
Target version: 2.1.4
Problem in version: 2.1.3


Hi,

When building using java 8, the junit test JScriptEvaluatorTest.testList() 
fails on the last assert as the returned list has only one item instead of one.

The attached patch fixes this problem. 

Please note :
- Fix comes from 
http://stackoverflow.com/questions/22492641/java8-js-nashorn-convert-array-to-java-array
 (Nabor's response)
- The added code will be executed only when current conversion strategies do 
not apply which limit the risk of side effects.
- For me, target branch for this fix should be 2.1.4 considering that some 
users are probably already running LSC with java 8



-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://tools.lsc-project.org/my/account
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org

lsc-dev mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-dev

Reply via email to