Package: bsh / 2.0b4-19

07_java9_compatibility.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: Fixes the build failure with Java 9
Author: Emmanuel Bourg <ebourg@apache.org>
Forwarded: no
--- a/src/bsh/util/AWTConsole.java
+++ b/src/bsh/util/AWTConsole.java
@@ -220,8 +220,6 @@
 		Great.  What a piece of crap.
 	*/
 	public void setCaretPosition( int pos ) {
-		((java.awt.peer.TextComponentPeer)getPeer()).setCaretPosition( 
-			pos + countNLs() );
 	}
 
 	/*