[jline2] jline.console.ConsoleReader.back should be protected instead of private [rhbz#751208]

Marek Goldmann goldmann at fedoraproject.org
Tue Nov 15 12:05:38 UTC 2011


commit 9e7e7b1ab67d718e279d9492e13c82c688b184ae
Author: Marek Goldmann <goldmann at fedoraproject.org>
Date:   Tue Nov 15 08:05:12 2011 -0500

    jline.console.ConsoleReader.back should be protected instead of private [rhbz#751208]

 jline2-2.5-protected-void-back.patch |   12 ++++++++++++
 jline2.spec                          |    7 ++++++-
 2 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/jline2-2.5-protected-void-back.patch b/jline2-2.5-protected-void-back.patch
new file mode 100644
index 0000000..eda39e0
--- /dev/null
+++ b/jline2-2.5-protected-void-back.patch
@@ -0,0 +1,12 @@
+diff -up jline-2.5/src/main/java/jline/console/ConsoleReader.java.org jline-2.5/src/main/java/jline/console/ConsoleReader.java
+--- jline-2.5/src/main/java/jline/console/ConsoleReader.java.org	2011-11-03 21:27:38.242789068 +0100
++++ jline-2.5/src/main/java/jline/console/ConsoleReader.java	2011-11-03 21:28:47.027460246 +0100
+@@ -579,7 +579,7 @@ public class ConsoleReader
+     /**
+      * Move the visual cursor backwards without modifying the buffer cursor.
+      */
+-    private void back(final int num) throws IOException {
++    protected void back(final int num) throws IOException {
+         if (num == 0) return;
+         if (terminal.isAnsiSupported()) {
+             int width = getTerminal().getWidth();
diff --git a/jline2.spec b/jline2.spec
index 8c498a8..ef91959 100644
--- a/jline2.spec
+++ b/jline2.spec
@@ -1,6 +1,6 @@
 Name:             jline2
 Version:          2.5
-Release:          3%{?dist}
+Release:          4%{?dist}
 Summary:          JLine is a Java library for handling console input
 Group:            Development/Libraries
 License:          BSD and ASL 2.0
@@ -10,6 +10,7 @@ URL:              https://github.com/jline/jline2
 # cd jline2/ && git archive --format=tar --prefix=jline-2.5/ jline-2.5 | xz > jline-2.5.tar.xz
 Source0:          jline-%{version}.tar.xz
 Patch0:           %{name}-%{version}-pom.patch
+Patch1:           %{name}-%{version}-protected-void-back.patch
 
 BuildArch:        noarch
 
@@ -47,6 +48,7 @@ This package contains the API documentation for %{name}.
 %prep
 %setup -q -n jline-%{version}
 %patch0 -p1
+%patch1 -p1
 
 %build
 mvn-rpmbuild install javadoc:aggregate
@@ -77,6 +79,9 @@ install -pm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
 %doc LICENSE.txt
 
 %changelog
+* Tue Nov 15 2011 Marek Goldmann <mgoldman at redhat.com> 2.5-4
+- jline.console.ConsoleReader.back should be protected instead of private [rhbz#751208]
+
 * Wed Sep 21 2011 Marek Goldmann <mgoldman at redhat.com> 2.5-3
 - Updated license
 - Removed unnecessary add_to_maven_depmap


More information about the scm-commits mailing list