diff --git a/external/beanshell/UnpackedTarball_beanshell.mk b/external/beanshell/UnpackedTarball_beanshell.mk index f35dd7d794a1..dc0ce6dc6cb5 100644 --- a/external/beanshell/UnpackedTarball_beanshell.mk +++ b/external/beanshell/UnpackedTarball_beanshell.mk @@ -18,6 +18,7 @@ $(eval $(call gb_UnpackedTarball_fix_end_of_line,beanshell,\ $(eval $(call gb_UnpackedTarball_add_patches,beanshell,\ external/beanshell/bsh-2.0b1-src.patch \ external/beanshell/beanshell-invoke.patch \ + external/beanshell/java9.patch.0 \ )) # vim: set noet sw=4 ts=4: diff --git a/external/beanshell/java9.patch.0 b/external/beanshell/java9.patch.0 new file mode 100644 index 000000000000..2dfd5074afdf --- /dev/null +++ b/external/beanshell/java9.patch.0 @@ -0,0 +1,21 @@ +--- build.xml ++++ build.xml +@@ -176,7 +176,6 @@ + deprecation="${deprecation}" + optimize="on" + debug="on" +- target="1.5" + includes="**/*.java" + excludes="${excludes},**/bak/**" + > +--- src/bsh/util/AWTConsole.java ++++ src/bsh/util/AWTConsole.java +@@ -214,8 +214,6 @@ + Great. What a piece of crap. + */ + public void setCaretPosition( int pos ) { +- ((java.awt.peer.TextComponentPeer)getPeer()).setCaretPosition( +- pos + countNLs() ); + } + + /*