[PATCH] broken build: The method replace(char, char) in the type String is not 
applicable for the arguments (String, String)
----------------------------------------------------------------------------------------------------------------------------

                 Key: JRUBY-1218
                 URL: http://jira.codehaus.org/browse/JRUBY-1218
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
         Environment: java version "1.4.2_14"
MS Windows
            Reporter: Dmitry Verkhovsky


Just updated to HEAD and got broken build with the following error:

java.lang.Error: Unresolved compilation problem: 
        The method replace(char, char) in the type String is not applicable for 
the arguments (String, String)
        at org.jruby.Ruby.compileOrFallbackAndRun(Ruby.java:315)
        ...

Patch:

Index: jruby_trunk/src/org/jruby/Ruby.java
===================================================================
--- jruby_trunk/src/org/jruby/Ruby.java (revision 4044)
+++ jruby_trunk/src/org/jruby/Ruby.java (working copy)
@@ -312,7 +312,7 @@
                     if (filename.equals("-e")) {
                         classname = "__dash_e__";
                     } else {
-                        classname = filename.replace("\\", "/").replace(".rb", 
"");
+                        classname = filename.replace('\\', 
'/').replaceAll(".rb", "");
                     }
         
                     ASTInspector inspector = new ASTInspector();


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to