jfclere     2005/04/15 07:24:53

  Modified:    jni/examples/org/apache/tomcat/jni Echo.java
  Log:
  Quick hack to get it compiled.
  
  Revision  Changes    Path
  1.3       +6 -4      
jakarta-tomcat-connectors/jni/examples/org/apache/tomcat/jni/Echo.java
  
  Index: Echo.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/jni/examples/org/apache/tomcat/jni/Echo.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Echo.java 14 Apr 2005 06:46:28 -0000      1.2
  +++ Echo.java 15 Apr 2005 14:24:53 -0000      1.3
  @@ -51,8 +51,8 @@
               props.load(is);
               is.close();
               echoAddr = props.getProperty("echo.ip", "127.0.0.1");
  -            echoPort = Integer.decode(props.getProperty("echo.port", "23"));
  -            echoNmax = Integer.decode(props.getProperty("echo.max", "1"));
  +            echoPort = Integer.decode(props.getProperty("echo.port", 
"23")).intValue();
  +            echoNmax = Integer.decode(props.getProperty("echo.max", 
"1")).intValue();
           }
           catch (Throwable t) {
               ; // Nothing
  @@ -159,15 +159,17 @@
                           worker.start();
                       }
                   }
  +                /* XXX: JFC quick hack
                   catch(Error err ) {
                       if (Status.APR_STATUS_IS_TIMEUP(err.getError())) {
  -                        /* TODO: deal with timeout */
  +                        /0 TODO: deal with timeout 0/
                       }
                       else {
                           err.printStackTrace();
                           break;
                       }
                   }
  +                 */
                   catch( Exception ex ) {
                       ex.printStackTrace();
                       break;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to