RubyFileTest fails to be compiled in Eclipse
--------------------------------------------

                 Key: JRUBY-1131
                 URL: http://jira.codehaus.org/browse/JRUBY-1131
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.0.0
         Environment: Mac OS X 10.4
JDK 1.5.0_07
Eclipse 3.2.2
            Reporter: Changshin Lee
             Fix For: JRuby 1.0.1


org.jruby.RubyFileTest

    public static IRubyObject exist_p(IRubyObject recv, IRubyObject filename) {
        return recv.getRuntime().newBoolean(newFile(filename).exists());
    }

...
    public static RubyBoolean executable_p(IRubyObject recv, IRubyObject 
filename) {
        recv.getRuntime().getWarnings().warn("executable? does not work on 
JRuby and will return a dummy value");
        return exist_p(recv, filename);
    }

Eclipse points that Type mismatch: cannot convert from IRubyObject to 
RubyBoolean at exist_p in executable_p.

In fact, recv.getRuntime().newBoolean(...) returns RubyBoolean, so I think 
RubyBoolean is correct for the return type of exist_p method.  

-- 
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