external/beanshell/java9.patch.0 |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

New commits:
commit 53fc42e4beca11fba1f0a697e9259190ebfad249
Author: Fridrich Å trba <fridrich.st...@bluewin.ch>
Date:   Wed Sep 20 10:49:32 2017 +0200

    beanshell: don't remove the getPeer call, access it by reflection
    
    Change-Id: I031580c6edd0d80727d940b4fd300308a905a383

diff --git a/external/beanshell/java9.patch.0 b/external/beanshell/java9.patch.0
index 2dfd5074afdf..824e54286edf 100644
--- a/external/beanshell/java9.patch.0
+++ b/external/beanshell/java9.patch.0
@@ -10,12 +10,16 @@
                >
 --- src/bsh/util/AWTConsole.java
 +++ src/bsh/util/AWTConsole.java
-@@ -214,8 +214,6 @@
+@@ -214,8 +214,11 @@
                Great.  What a piece of crap.
        */
        public void setCaretPosition( int pos ) {
 -              ((java.awt.peer.TextComponentPeer)getPeer()).setCaretPosition( 
--                      pos + countNLs() );
++              try {
++                      
((java.awt.peer.TextComponentPeer)getClass().getMethod("getPeer").invoke(this, 
null)).setCaretPosition( 
+                       pos + countNLs() );
++              } catch (Exception e) {
++              }
        }
  
        /*
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to