[jruby-dev] [jira] Created: (JRUBY-1285) YAML roundtrip error

2007-08-22 Thread David Rice (JIRA)
YAML roundtrip error Key: JRUBY-1285 URL: http://jira.codehaus.org/browse/JRUBY-1285 Project: JRuby Issue Type: Bug Components: Core Classes/Modules Affects Versions: JRuby 1.0.1 Reporter: David

RE: [jruby-dev] Working with Java classes in JRuby

2007-08-22 Thread Peter K Chan
Eric, Interesting. For a), how are you invoking JRuby? Is it possible that your CLASSPATH setting is not even picked up by the JVM? From what I know, if you don't need to load JAR in Java code, then you wouldn't have to load the JAR explicitly in JRuby either. For b), once

Re: [jruby-dev] Working with Java classes in JRuby

2007-08-22 Thread Eric Armstrong
Hi, Peter. Your comments match my expectation, based on what I had read. But what I found was that: a) Putting the jar in the CLASSPATH was not sufficient. An include_class statement failed with "class not found" until the JAR was also required in the code. (For JVM core classes, it

RE: [jruby-dev] Working with Java classes in JRuby

2007-08-22 Thread Peter K Chan
Eric, I think most of your steps are correct. I suspect that if you are including the JAR on the JVM CLASSPATH, you would not need to require the JAR individually (JRuby can resolve the class using normal Java classloading). 3 and 4 are substitutes for each other. Use one or the ot

[jruby-dev] Working with Java classes in JRuby

2007-08-22 Thread Eric Armstrong
http://java.sun.com/developer/technicalArticles/scripting/jruby/ http://www.headius.com/jrubywiki/index.php/Calling_Java_from_JRuby After examining those writeups and doing a lot of experimenting, I've been able to make 3rd party Java classes accessible by doing the following: 1. Putting the

[jruby-dev] [jira] Created: (JRUBY-1284) $$ (pid) returns non-pid (Ruby.hashCode) and it set in Main.java

2007-08-22 Thread skaar (JIRA)
$$ (pid) returns non-pid (Ruby.hashCode) and it set in Main.java Key: JRUBY-1284 URL: http://jira.codehaus.org/browse/JRUBY-1284 Project: JRuby Issue Type: Bug Compon

[jruby-dev] A Patch for Alias

2007-08-22 Thread dreamhead
Hi! I worked on AR-JDBC recently. assert_queries in abstract_unit.rb doesn't work in JRuby. The reason is that 'execute' method is aliased. After debug, I find removeCachedMethod in CacheSite isn't invoked (remove in CacheMap) when method is aliased. I can't give the exact reason because some cod