Jshell
jshell ist ein Java-REPL (Read-Eval-Print-Loop), der mit Java 9 in das JDK aufgenommen werden soll.[1] Die Entwicklung wird im JEP 222 koordiniert.[2]
Einer der Gründe für die Aufnahme eines REPL in Java ist, dass viele Anwendungen ihre eigene Skriptsprache implementieren. Dabei wird oft BeanShell verwendet, das seit 2003 nicht mehr weiterentwickelt wird[3] und dessen Syntax willkürlich von der Java-Syntax abweicht[4].
Einzelnachweise[Bearbeiten]
- Hochspringen ↑ What REPL means for Java. JavaWorld. 13. August 2015. Abgerufen am 10. März 2017.
- Hochspringen ↑ JEP 222: jshell: The Java Shell (Read-Eval-Print Loop). Oracle Corporation. 10. Oktober 2016. Abgerufen am 10. März 2017: „Provide an interactive tool to evaluate declarations, statements, and expressions of the Java programming language, together with an API so that other applications can leverage this functionality“
- Hochspringen ↑ JEP 222: jshell: The Java Shell (Read-Eval-Print Loop). Oracle Corporation. 10. Oktober 2016. Abgerufen am 10. März 2017: „Another alternative is to maintain the status quo: Use another language or use a third-party REPL such as BeanShell, though that particular REPL has been dormant for many years, is based on JDK 1.3, and makes arbitrary changes to the language.“
- Hochspringen ↑ JShell, the Java 9 REPL – What does it do?. jaxenter.com. 3. September 2015. Abgerufen am 10. März 2017: „BeanShell (just like Groovy, too by the way) made an attempt of standardisation by the Java Community Process in JSR 274 – a JSR that did not produce any notable output, in spite of the fact that (or perhaps because?) two major companies, Sun and Google, had joined the expert group. Under the JCP.next initiative this JSR was declared “Dormant”.“