Switching from Rhino to Nashorn

前端 未结 7 904
死守一世寂寞
死守一世寂寞 2020-12-13 13:46

I have a Java 7 project which makes a lot of use of Javascript for scripting various features. Until now I was using Rhino as script engine. I would now like to move to Java

相关标签:
7条回答
  • 2020-12-13 14:27

    Nashorn cannot call static methods on instances! Rhino did this, therefore we had to backport Rhino to Java 8 (Here's a short summary: http://andreas.haufler.info/2015/04/using-rhino-with-java-8.html)

    0 讨论(0)
提交回复
热议问题