geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xuhaih...@apache.org
Subject svn commit: r1095308 - /geronimo/server/trunk/framework/modules/geronimo-deploy-tool/src/main/java/org/apache/geronimo/deployment/cli/StreamConsoleReader.java
Date Wed, 20 Apr 2011 07:33:29 GMT
Author: xuhaihong
Date: Wed Apr 20 07:33:29 2011
New Revision: 1095308

URL: http://svn.apache.org/viewvc?rev=1095308&view=rev
Log:
GERONIMO-5911 java.lang.ClassCastException while printing info to the console

Modified:
    geronimo/server/trunk/framework/modules/geronimo-deploy-tool/src/main/java/org/apache/geronimo/deployment/cli/StreamConsoleReader.java

Modified: geronimo/server/trunk/framework/modules/geronimo-deploy-tool/src/main/java/org/apache/geronimo/deployment/cli/StreamConsoleReader.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/framework/modules/geronimo-deploy-tool/src/main/java/org/apache/geronimo/deployment/cli/StreamConsoleReader.java?rev=1095308&r1=1095307&r2=1095308&view=diff
==============================================================================
--- geronimo/server/trunk/framework/modules/geronimo-deploy-tool/src/main/java/org/apache/geronimo/deployment/cli/StreamConsoleReader.java
(original)
+++ geronimo/server/trunk/framework/modules/geronimo-deploy-tool/src/main/java/org/apache/geronimo/deployment/cli/StreamConsoleReader.java
Wed Apr 20 07:33:29 2011
@@ -66,7 +66,7 @@ public class StreamConsoleReader impleme
     @Override
     public void printNewline() throws IOException {
         if (jlineConsoleEnabled) {
-            ((ConsoleReader) jlineConsoleReader).printNewline();
+            jlineConsoleReader.println();
         } else {
             console.println();
         }
@@ -82,7 +82,7 @@ public class StreamConsoleReader impleme
     @Override
     public void printString(String s) throws IOException {
         if (jlineConsoleEnabled) {
-            ((ConsoleReader) jlineConsoleReader).printString(s);
+            jlineConsoleReader.print(s);
         } else {
             console.print(s);
         }
@@ -98,8 +98,8 @@ public class StreamConsoleReader impleme
     @Override
     public void println(String s) throws IOException {
         if (jlineConsoleEnabled) {
-            ((ConsoleReader) jlineConsoleReader).printString(s);
-            ((ConsoleReader) jlineConsoleReader).printNewline();
+            jlineConsoleReader.print(s);
+            jlineConsoleReader.println();
         } else {
             console.println(s);
             console.println();
@@ -148,7 +148,7 @@ public class StreamConsoleReader impleme
     @Override
     public void flushConsole() throws IOException {
         if (jlineConsoleEnabled) {
-            ((ConsoleReader) jlineConsoleReader).flushConsole();
+             jlineConsoleReader.flush();
         } else {
             console.flush();
         }



Mime
View raw message