Re: [jruby-dev] Moving to a classloader-global runtime!

2010-01-16 Thread Yoko Harada
* caching right now) > * Replacing arbitrary pieces of Java code with Ruby code will be *much* easier > > And the list goes on. > > Perhaps the most important person I'd like to see in this discussion > would be Yoko Harada, since it may be possible to hide all this behind &g

[jruby-dev] ArrayIndexOutOfBoundsException from ThreadContext.getCurrentScope

2010-02-18 Thread Yoko Harada
Hi, I'm having a trouble to make embedding tests pass right now. After the commit, commit ebb0459ec816c5aebb2dd49387ac0fb324a8eae7 Author: Charles Oliver Nutter Date: Wed Feb 17 15:59:31 2010 -0600 Fix an issue I introduced where -r flag with a missing file causes NPE. embedding tests

[jruby-dev] Re: ArrayIndexOutOfBoundsException from ThreadContext.getCurrentScope

2010-02-18 Thread Yoko Harada
es of embedding tests. -Yoko On Thu, Feb 18, 2010 at 11:49 AM, Yoko Harada wrote: > Hi, > > I'm having a trouble to make embedding tests pass right now. > > After the commit, > > commit ebb0459ec816c5aebb2dd49387ac0fb324a8eae7 > Author: Charles Oliver Nutter > D

Re: [jruby-dev] Improving Ruby to Java call performance: no instance vars or singletons

2010-06-12 Thread Yoko Harada
On Sat, Jun 12, 2010 at 11:41 AM, Charles Oliver Nutter wrote: > One of the primary remaining perf challenges for JRuby is the cost of > bringing Java objects into the Ruby environment. Currently, all > objects get wrapped with a small wrapper object that implements > IRubyObject. This is primaril

Re: [jruby-dev] Problem running test suite with Java 6 on Mac.

2010-09-13 Thread Yoko Harada
On Mon, Sep 13, 2010 at 11:00 AM, Nick Sieger wrote: > On Mon, Sep 13, 2010 at 1:53 AM, Ola Bini wrote: >> Haven't built JRuby in a while, and now suddenly I have problems running the >> test suite. Specifically, it hangs for Java 6 during the Testsuite: >> org.jruby.test.JRubyTestSuite step. Is

[jruby-dev] RubyTuple.java compilation fails on JDK 5

2010-09-15 Thread Yoko Harada
Hi, A compilation of src/org/jruby/RubyTuple.java fails on JDK5 since this class uses a method newly defined in JDK6. The method is ary = Arrays.copyOf(ary, ary.length * 3 / 2 + 1); on line 52. Does JRuby stop supporting JDK5? -Yoko --

Re: [jruby-dev] RubyTuple.java compilation fails on JDK 5

2010-09-15 Thread Yoko Harada
On Wed, Sep 15, 2010 at 6:35 PM, Wayne Meissner wrote: > On 16 September 2010 07:08, Yoko Harada wrote: >> Hi, >> >> A compilation of src/org/jruby/RubyTuple.java fails on JDK5 since this >> class uses a method newly defined in JDK6. >> The method is ary = Arra

Re: [jruby-dev] RubyTuple.java compilation fails on JDK 5

2010-09-16 Thread Yoko Harada
On Wed, Sep 15, 2010 at 7:47 PM, Wayne Meissner wrote: > On 16 September 2010 09:29, Yoko Harada wrote: >>> Probably create org/jruby/util/ArrayUtil and dump the implementation >>> of copyOf() in there. >> >> Ah, so just a mistake. I got it. >> Will someone

Re: [jruby-dev] Getting the wiki off Kenai: converting MediaWiki markup

2010-12-01 Thread Yoko Harada
Hi, On Tue, Nov 30, 2010 at 9:50 AM, Douglas Campos wrote: >> You can obtain a programmatic dump by hitting the Kenai API. Here's a >> starting point: > > Awesome! Makes life easier for me :) > >> If we can make a decent format converter, it would be nice to store >> all the revisions in the new

Re: [jruby-dev] 1.6.0 JRuby Embed classloaders

2011-02-08 Thread Yoko Harada
Hi Rob, Good suggestion! On Sun, Feb 6, 2011 at 1:08 AM, Rob Heittman wrote: > Hi Yoko and all, > > 1.6.0 introduces a new system property to control a useful new > behavior in the JSR223 implementation: > > org.jruby.embed.classloader: current | none > > as documented here: > http://yokolet.blo

Re: [jruby-dev] 1.6.0 JRuby Embed classloaders

2011-02-08 Thread Yoko Harada
by" Oh, "container." That makes sense to me. I'm going to work on this. Hopefully, this will be in RC2. -Yoko > > On Tue, Feb 8, 2011 at 1:18 PM, Yoko Harada wrote: >> I think the change is good and doesn't harm anything. This option is quite >> new. >

Re: [jruby-dev] 1.6.0 JRuby Embed classloaders

2011-02-08 Thread Yoko Harada
uby maintenance > updates to the cluster with no downtime at all! Long path to get > there, but a really great result. Interesting. Do you have blog post or something? JSR223 users who want to get that work on OSGi will be happy about that. So am I. -Yoko > > On Tue, Feb 8, 2011 at 3

Re: [jruby-dev] 1.6.0 JRuby Embed classloaders

2011-02-09 Thread Yoko Harada
On Tue, Feb 8, 2011 at 10:00 PM, Rob Heittman wrote: >> I pushed the change by the commit, bc6fb9c. Would you help me to test >> the change is really working? Custom classloader issue is not easy to >> break down to a simple test case. > > Yes, I'll pull it now and replace my version -- will post

Re: [jruby-dev] 1.6.0 JRuby Embed classloaders

2011-02-09 Thread Yoko Harada
On Wed, Feb 9, 2011 at 12:12 AM, Rob Heittman wrote: > Works great! I updated via rvm to jruby-head 3d4720 (bc6fb9+2) and > built with "ant dist", then replaced my hack with > jruby-complete-1.6.0-RC2.jar from that build. Added: > >    System.setProperty("org.jruby.embed.classloader", "context");

Re: [jruby-dev] Terminating JRuby runtimes started via JSR-223

2011-02-28 Thread Yoko Harada
Hi, On JSR223, you can call terminate() method by using "org.jruby.embed.termination" attribute. ScriptEngineManager manager = new ScriptEngineManager(); ScriptEngine engine = manager.getEngineByName("jruby"); engine.eval("$x='GVar'"); engine.eval("at_exit { puts \"#{$x} in an at_exit block\" }")

Re: [jruby-dev] Re: Terminating JRuby runtimes started via JSR-223

2011-02-28 Thread Yoko Harada
On Fri, Feb 25, 2011 at 8:26 AM, Rob Heittman wrote: > I added this public method to JRubyEngine: > >    public void stop() { >        container.terminate(); >    } This would be a kind of solution. But, you need to write JRuby specific code. Then, why don't you use ScriptingContainer? JSR223 is

Re: [jruby-dev] Redbridge NameError: uninitialized constant Arel::Relation::Session

2011-05-04 Thread Yoko Harada
On Wed, May 4, 2011 at 2:27 PM, Nick Sieger wrote: > This looks like a subtle loading/dependencies bug with Arel 1.0, > ActiveSupport::Dependencies and the way that you're initializing > Rails. I'm not sure exactly what needs to be corrected, but I'd > suggest making sure that AS::Dependencies are

Re: [jruby-dev] Which versioning method is taken on JRuby?

2011-06-10 Thread Yoko Harada
On Fri, Jun 10, 2011 at 11:06 AM, Thomas E Enebo wrote: > On Thu, Jun 9, 2011 at 4:53 PM, Wayne Meissner wrote: >> On 10 June 2011 06:47, Magnus Holm wrote: >> >>> application/library/something and be sure that it will work on any >>> JRuby 1.6.x. It means that JRuby can push out security and bu

Re: [jruby-dev] RedBridge unable to load JRuby RubyGems

2011-07-20 Thread Yoko Harada
Hi, You have "Exception `LoadError' at org/jruby/RubyKernel.java:1037 - no such file to load -- helper" in your exception stack trace. You want to run Nokogiri's tests, right? Then, you need to load Nokoigiri's helper.rb, too. Hope this helps, -Yoko On Wed, Jul 20, 2011 at 8:33 AM, Shih-gian Lee

Re: [jruby-dev] step 1: now test suite hangs

2011-12-18 Thread Yoko Harada
On Sun, Dec 18, 2011 at 8:03 AM, Stuart Halloway wrote: > run-junit-interpreted-short: >     [echo] compile=OFF, jit.threshold=20, jit.maxsize=10, jit.max=-1, > objectspace=false threadpool=false reflection=false version=ruby1_8 >    [junit] Testsuite: org.jruby.test.ScriptTestSuite >  

Re: [jruby-dev] Experiments: AbstractRubyStruct, AtomicStruct, AbstractRubyHash

2011-12-20 Thread Yoko Harada
On Mon, Dec 19, 2011 at 9:22 AM, Charles Oliver Nutter wrote: > 2. AbstractRubyHash > > This is the long-talked-about refactoring of RubyHash into an abstract > half and an implementation half. > > The experiment is here: https://github.com/headius/jruby/tree/abstract_hash > > It does not yet comp

[jruby-dev] Did JRuby source repo move to github?

2012-06-26 Thread Yoko Harada
Hi, I wonder JRuby source repo moved from jruby.org to github? I see headius's commit, a7d32fa5549c18a7497231ee1b48e2989edeedf9 , on github's jruby/jruby. But, after "git pull --rebase" several times on my local repo, the most recent commit is c0069037dd6ad448e392993e962c9ae45f01e39c by Tom. I h

Re: [jruby-dev] Did JRuby source repo move to github?

2012-06-27 Thread Yoko Harada
ange your git repo. > > > On 27 June 2012 14:57, Yoko Harada wrote: >> Hi, >> >> I wonder JRuby source repo moved from jruby.org to github? >> >> I see headius's commit, a7d32fa5549c18a7497231ee1b48e2989edeedf9 , on >> github's jruby/jruby. But, aft

Re: [jruby-dev] Alex Tambellini added as committer

2013-05-08 Thread Yoko Harada
Welcome Alex! -Yoko On Wed, May 8, 2013 at 6:02 PM, Charles Oliver Nutter wrote: > Welcome Alex to the team. He has been tossing us pull requests for a good > while now, cleaning up edge case specs and helping us round out Ruby 1.9.3 > behavior. > > Thank you Alex! > > - Charlie >

Re: [jruby-dev] Pre-branch (1.7) reorg of codebase

2013-06-23 Thread Yoko Harada
Hi Charlie, Mavenizing is a good idea. It is IDE friendly. (Probably Gradlizing as well) When JRuby will be mavenized, is it possible to divide into sub modules? and, for some users, make it customizable? For example, Ruboto cuts down unnecessary packages from JRuby and make it small to fit in t

Re: [jruby-dev] Pre-branch (1.7) reorg of codebase

2013-06-23 Thread Yoko Harada
Thanks for explaining in detail. On Sun, Jun 23, 2013 at 3:47 PM, Charles Oliver Nutter wrote: > > For example, pure Java Nokogiri will have some good effects from this? > > Can you elaborate? Are you referring to the problem of bundling > Nokogiri with a "complete" style jar, as on Ruboto? > Su

Re: [jruby-dev] Pre-branch (1.7) reorg of codebase

2013-06-23 Thread Yoko Harada
w, I totally understood what "upgradable extensions" means. Thanks, -Yoko > - Charlie (mobile) > On Jun 23, 2013 5:24 PM, "Yoko Harada" wrote: > >> Thanks for explaining in detail. >> >> On Sun, Jun 23, 2013 at 3:47 PM, Charles Oliver Nutter < >>

[jruby-dev] I18n problem in StrNode and ByteList

2007-10-26 Thread Yoko Harada
Hi, While I was testing JSR223 API, I hit JRuby's i18n bug. After fixing problems in JSR223's JRubyScriptEngine, I tried to print Japanese characters. This ended up in Mojibake. Supposed bug resides in org.jruby.astStrNode and org.jruby.util.ByteList, both of them handle characters as byte array.

Re: [jruby-dev] I18n problem in StrNode and ByteList

2007-10-26 Thread Yoko Harada
r should be treated as RAW or ISO8859_1 so > that every single byte still gets read. The parser will not properly > read chars since Ruby only works at a byte level. Did that make > sense? > > -Tom > > On 10/26/07, Yoko Harada <[EMAIL PROTECTED]> wrote: > > Hi, &

Re: [jruby-dev] I18n problem in StrNode and ByteList

2007-10-26 Thread Yoko Harada
I will. -Yoko On 10/26/07, Thomas E Enebo <[EMAIL PROTECTED]> wrote: > Yes. So combine this with my other message about encapsulating bodies > of those methods into JavaEmbedUtils.This will also help our impl > of BSF. > > -Tom > > On 10/26/07, Yoko Harada <[E

[jruby-dev] Changes on JavaEmbedUtils.java for JSR223 JRubyScriptEngine(Re: [jruby-dev] I18n problem in StrNode and ByteList)

2007-10-29 Thread Yoko Harada
ut encapsulating bodies > of those methods into JavaEmbedUtils.This will also help our impl > of BSF. > > -Tom > > On 10/26/07, Yoko Harada <[EMAIL PROTECTED]> wrote: > > It seems that JSR 223 implementation made an unwanted path to parser. > > JSR223's J

[jruby-dev] JavaEmbedUtils.java for JSR223 JRubyScriptEngine(Re: [jruby-dev] I18n problem in StrNode and ByteList)

2007-10-29 Thread Yoko Harada
Sorry, I totally forgot to attache a patch file. This time, the patch surely come with this message. -Yoko --- src/org/jruby/javasupport/.svn/text-base/JavaEmbedUtils.java.svn-base 2007-10-29 13:40:19.0 -0400 +++ src/org/jruby/javasupport/JavaEmbedUtils.java 2007-10-29 16:11:

[jruby-dev] Changes on JavaEmbedUtils.java for JSR223 JRubyScriptEngine

2007-10-29 Thread Yoko Harada
Sorry, again. The attachment doesn't show up, so I put the patch in this message. --- src/org/jruby/javasupport/.svn/text-base/JavaEmbedUtils.java.svn-base 2007-10-29 13:40:19.0 -0400 +++ src/org/jruby/javasupport/JavaEmbedUtils.java 2007-10-29 16:11:43.0 -0400 @@ -28,

Re: [jruby-dev] Changes on JavaEmbedUtils.java for JSR223 JRubyScriptEngine

2007-10-30 Thread Yoko Harada
Not at all. So, I created a new issue. -Yoko On 10/30/07, Nick Sieger <[EMAIL PROTECTED]> wrote: > Would you mind attaching this patch to a new issue at > http://jira.codehaus.org/browse/JRUBY so we don't lose it? > > Thanks, > /Nick > > On 10/29/07, Yoko

Re: [jruby-dev] Changes on JavaEmbedUtils.java for JSR223 JRubyScriptEngine(Re: [jruby-dev] I18n problem in StrNode and ByteList)

2007-10-30 Thread Yoko Harada
It looks like a step in the right direction. I need to examine > compileScript in the impl to see if perhaps we cannot even abstract a > little bit more. Regardless, I suspect having a parse in > JavaEmbedUtils is probably right. > > -Tom > > On 10/29/07, Yoko Harada &l

Re: [jruby-dev] Changes on JavaEmbedUtils.java for JSR223 JRubyScriptEngine(Re: [jruby-dev] I18n problem in StrNode and ByteList)

2007-10-30 Thread Yoko Harada
in the impl to see if perhaps we cannot even abstract a > > little bit more. Regardless, I suspect having a parse in > > JavaEmbedUtils is probably right. > > > > -Tom > > > > On 10/29/07, Yoko Harada <[EMAIL PROTECTED]> wrote: > > > According to

[jruby-dev] steps to make a patch by using NetBeans IDE

2007-10-31 Thread Yoko Harada
I've struggled a lot to submit a patch since this is the very first experience for me. After I submitted the patch, I found the useful feature of NetBeans for creating a patch file. So, I made a memo, a steps to make a patch by using NetBeans IDE. This may help those who want to contribute but don'

Re: [jruby-dev] steps to make a patch by using NetBeans IDE

2007-10-31 Thread Yoko Harada
On 10/31/07, Charles Oliver Nutter <[EMAIL PROTECTED]> wrote: > Could you also add this to the JRuby wiki, probably under the > "contributing" column on the front page? > > www.headius.com/jrubywiki > > - Charlie Sure. I added a new page and link under the "contributing" column. -Yoko --

Re: [jruby-dev] Which version am I downloading?

2007-11-02 Thread Yoko Harada
On 11/1/07, Charles Oliver Nutter <[EMAIL PROTECTED]> wrote: > Eric Armstrong wrote: > > I followed the instructions here: > > Getting Started - JRubyWiki > > http://www.headius.com/jrubywiki/index.php/Getting_Started#Downloading_Source_and_Building_Yourself > > > > > > And downloaded the sources w

Re: [jruby-dev] Which version am I downloading?

2007-11-02 Thread Yoko Harada
On 11/2/07, Yoko Harada <[EMAIL PROTECTED]> wrote: > Is there anything I can know the version when I checkout JRuby from trunk? I found JRuby's version number in jruby/src/jruby.properties. This is the file I should see when I want to know the version number, is

[jruby-dev] reference problem on NetBeans

2009-05-06 Thread Yoko Harada
Hi, Currently, I'm working on implementing JRuby Embed API(http://kenai.com/projects/jruby-embed), but I'm having a difficulty to go forward becase of a weird reference problem cuased by JRuby 1.3.0RC1 on NetBeans 6.5.1. When I added JRuby project to my project (properties -> Libraries -> Add Pro

Re: [jruby-dev] reference problem on NetBeans

2009-05-06 Thread Yoko Harada
Hi David, On Wed, May 6, 2009 at 1:41 PM, David Koontz wrote: > > On May 6, 2009, at 8:59 AM, Yoko Harada wrote: > >> To avoid this problem, I added jruby.jar only (not the whole project). >> A compilation was done successfully, but jruby.jar only was not >> enought

Re: [jruby-dev] getEngineByName and ant script

2009-05-14 Thread Yoko Harada
On Thu, May 14, 2009 at 9:27 AM, Charles Oliver Nutter wrote: > Is the JRuby jar file present on classpath somewhere in the JUnit without > JTestR case? I believe JTestR's jar bundles JRuby. Plus, check version compatibility. JSR223 JRuby engine work with JRuby 1.1.6 or before. Does JTestR use c

Re: [jruby-dev] TwoVarDynamicScope Problem

2009-05-26 Thread Yoko Harada
Hi Ahmed, Do you mean you got an error when you tried to run just evalScriptlet("require 'rubygems'") ? I didn't encounter this error on JRuby 1.3.0RC1. What's your JRuby version? If you get the error even on JRuby 1.3.0RC1, try below. This newer way of executing script sets null to DynamicScope w

Re: [jruby-dev] TwoVarDynamicScope Problem

2009-05-27 Thread Yoko Harada
his method. Typo of method arguments? > What JRuby version are you using with this code? I'm using JRuby 1.3.0RC1. -Yoko > > Regards,.. > > Ahmed > > Yoko Harada wrote: > > Hi Ahmed, > > Do you mean you got an error when you tried to run just > evalSc

Re: [jruby-dev] JSR223 & JRuby 1.3.0RC2

2009-06-02 Thread Yoko Harada
Asiri, On Tue, Jun 2, 2009 at 4:00 AM, Asiri Rathnayake wrote: > Hi Devs, > > I tried the following code snippet with two versions of JRuby: > > > > ScriptEngineManager manager = new ScriptEngineManager(); > ScriptEngine engine = manager.getEngineByName("jruby"); > engine.put("who", "Asiri"); >

Re: [jruby-dev] JSR223 & JRuby 1.3.0RC2

2009-06-02 Thread Yoko Harada
might be a task of JRuby enigne. -Yoko > > --- Den tirs 2/6/09 skrev Yoko Harada : > > Fra: Yoko Harada > Emne: Re: [jruby-dev] JSR223 & JRuby 1.3.0RC2 > Til: dev@jruby.codehaus.org > Dato: tirsdag 2. juni 2009 21.12 > > Asiri, > > On Tue, Jun 2, 2009 at

[jruby-dev] precompile mode for embedding

2009-06-07 Thread Yoko Harada
Hi, I'm interested in what Charles said in http://www.nabble.com/-ANN--ruby2java-0.0.1-Released-td23679153.html about "jruby.compile.mode=FORCE." This option works in Ruby#runNomally(Node scriptNode) method and causes compilation. So, I implemented a feature to set this option and compared with no

Re: [jruby-dev] Calling a fully developed Ruby class from Java

2009-06-20 Thread Yoko Harada
On Thu, Jun 18, 2009 at 6:07 PM, brightmatter wrote: > > Calling a fully developed Ruby class from Java, > > Hello, and thank you for taking my post. I am a short-time reader, > first-time poster to this forum. I am having trouble with JRuby. I don't > understand even the most simple actions.

Re: [jruby-dev] precompile mode for embedding

2009-07-02 Thread Yoko Harada
On Mon, Jun 8, 2009 at 10:02 PM, Charles Oliver Nutter wrote: > Yoko Harada wrote: >> >> I'm interested in what Charles said in >> http://www.nabble.com/-ANN--ruby2java-0.0.1-Released-td23679153.html >> about "jruby.compile.mode=FORCE." This option w

Re: [jruby-dev] JRuby 1.3.0 & JSR223-JRuby Engine

2009-07-23 Thread Yoko Harada
Hi Asiri, On Thu, Jul 23, 2009 at 5:08 AM, Asiri Rathnayake wrote: > Hi, > > I'm have ported JSR223-JRuby Engine to work with JRuby 1.3.0 version (few > minor adjustments only). However when using this engine with JRuby 1.3.0 I > get an annoying error log which says: > > "Error, could not compile;

Re: [jruby-dev] Proposal for new Java dispatch rules

2009-09-23 Thread Yoko Harada
On Mon, Sep 21, 2009 at 12:37 PM, Charles Oliver Nutter wrote: > Introducing 'coerce_to?' > > In order to reconcile this twist, all coercible classes will implement > a coerce_to? method that takes a target Java type and returns a > numeric score for the coercion to that type. The score's scale ha

Re: [jruby-dev] [ANN] New Committer: Yoko Harada (yokolet)

2009-10-14 Thread Yoko Harada
On Wed, Oct 14, 2009 at 2:09 PM, Thomas E Enebo wrote: > Everyone welcome our newest committer Yoko Harada to the team.  Yoko > will primarily be working on our JRuby embedding APIs and in the near > future she will be integrating the jruby-embed project into the main > JRuby codeba

Re: [jruby-dev] [ANN] New Committer: Yoko Harada (yokolet)

2009-10-14 Thread Yoko Harada
Hi there, I just merged sources of embedding API into JRuby git head. I also added livetrive version of javax.script implementation to compile JRuby on JDK5. The livetribe is hosted at http://livetribe.codehaus.org/. The license of the livetribe impl is Apache v2, so I think there's no problem to

[jruby-dev] Merging codebase (Re: [jruby-dev] [ANN] New Committer: Yoko Harada (yokolet))

2009-10-16 Thread Yoko Harada
On Wed, Oct 14, 2009 at 5:57 PM, Yoko Harada wrote: > META-INF/services/javax.script.ScriptEngineFactory is missing in a > compiled archive. I'm trying to find a way to add this. Let me ask this change is reasonable or not since this is the first time to edit JRuby's build.xml.

Re: [jruby-dev] [ANN] New Committer: Yoko Harada (yokolet)

2009-10-16 Thread Yoko Harada
> > Btw, if you need help don't hesitate to ask. I will. -Yoko > > On Wed, Oct 14, 2009 at 11:57 PM, Yoko Harada wrote: >> >> Hi there, >> >> I just merged sources of embedding API into JRuby git head. I also >> added livetrive version of javax.script

Re: [jruby-dev] Merging codebase (Re: [jruby-dev] [ANN] New Committer: Yoko Harada (yokolet))

2009-10-17 Thread Yoko Harada
On Sat, Oct 17, 2009 at 10:41 AM, Nick Sieger wrote: > On Fri, Oct 16, 2009 at 1:02 PM, Yoko Harada wrote: >> On Wed, Oct 14, 2009 at 5:57 PM, Yoko Harada wrote: >>> META-INF/services/javax.script.ScriptEngineFactory is missing in a >>> compiled archive. I'm

Re: [jruby-dev] What is the best way to parse ruby script using org.jruby.Ruby

2009-10-29 Thread Yoko Harada
Hi Vivek, On Thu, Oct 29, 2009 at 12:13 AM, Vivek Pandey wrote: > From inside GlassFish, we call Ruby.evalScriptlet(String) for parsing ruby > code and getting back IRubyObject. Whats the equivalent API to take > InputStream instead of String? > At many times we need to parse the complete Ruby fi

[jruby-dev] test fails when ruby 1.9 is specified on JDK 1.5

2009-12-04 Thread Yoko Harada
Hi, Today, embed test fails on JDK 1.5 when ruby 1.9 mode is specified. The raised exception is: [junit] 致命的: Exception : [junit] java.lang.VerifyError: (class: org/jruby/RubyComplex$i_method_0_1$RUBYINVOKER$rationalize, method: call signature: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runt

[jruby-dev] Re: test fails when ruby 1.9 is specified on JDK 1.5

2009-12-07 Thread Yoko Harada
ot;optional = 1" from the annotation of rationalize, I didn't get java.lang.VerifyError. The embed test passed on JDK 1.5. I wonder whether the annotation of rationalize method is correct or not. If the method works without "optional = 1" in the @JRubyMethod, may I delete this? -Yoko

Re: [jruby-dev] Re: test fails when ruby 1.9 is specified on JDK 1.5

2009-12-07 Thread Yoko Harada
Hi Vlad, On Mon, Dec 7, 2009 at 12:39 PM, Vladimir Sizikov wrote: > Hi Yoko, > > On Mon, Dec 7, 2009 at 6:29 PM, Yoko Harada wrote: >> When I deleted "optional = 1" from the annotation of rationalize, I >> didn't get java.lang.VerifyError. The embed test pa

Re: [jruby-dev] Re: test fails when ruby 1.9 is specified on JDK 1.5

2009-12-07 Thread Yoko Harada
On Mon, Dec 7, 2009 at 1:10 PM, Vladimir Sizikov wrote: > Hi Yoko, > > On Mon, Dec 7, 2009 at 6:47 PM, Yoko Harada wrote: >> Adjusting the arguments would be the answer. Are you going to push the fix? > > Done. Thank you. I confirmed embed test passed on 4d2dd32.

[jruby-dev] b9cb730 causes debugging trouble

2009-12-20 Thread Yoko Harada
Hi there, These days, I'm having a debugging trouble. Although embedding programs run well using java command, those don't run on NetBeans. So, debugging is really hard now. By git bisect, I figured out what commit caused the trouble. When I reverted this commit, my programs worked well on NetBean

Re: [jruby-dev] b9cb730 causes debugging trouble

2009-12-22 Thread Yoko Harada
e...@." Not only version.ruby.patchlevel, but also other all properties were "@someting." I don't know the reason, but NetBeans sees the jruby.properties in the JRuby's source directory. Probably, I'd better ask this at NetBeans ml or somewhere. -Yoko > > -T

Re: [jruby-dev] b9cb730 causes debugging trouble

2010-01-05 Thread Yoko Harada
On Wed, Dec 23, 2009 at 5:15 PM, Charles Oliver Nutter wrote: > Yoko: Be sure to file a bug for this so we know it's in the process > and doesn't get forgotten :) Done. JRUBY-4419 -Yoko > > On Tue, Dec 22, 2009 at 3:27 PM, Yoko Harada wrote: >> Hi Tom, >> &

Re: [jruby-dev] Moving to a classloader-global runtime!

2010-01-06 Thread Yoko Harada
; * Replacing arbitrary pieces of Java code with Ruby code will be *much* easier > > And the list goes on. > > Perhaps the most important person I'd like to see in this discussion > would be Yoko Harada, since it may be possible to hide all this behind > RedBridge and the 223/

Re: [jruby-dev] Moving to a classloader-global runtime!

2010-01-06 Thread Yoko Harada
n will work, since it will just be able to grab the >> classloader-global Ruby instance when constructing >> * All core classes will be able to start inline caching calls back to >> Ruby (where they do almost *no* caching right now) >> * Replacing arbitrary pieces of Java

[jruby-dev] [jira] Created: (JRUBY-4460) ScriptingContainer#getInstace method doesn't return a correct interface type in some cases

2010-01-12 Thread Yoko Harada (JIRA)
-4460 Project: JRuby Issue Type: Bug Components: Embedding Affects Versions: JRuby 1.4 Reporter: Yoko Harada Moved from http://kenai.com/jira/browse/JRUBY_EMBED-9. ScriptingContainer#getInstance doesn't return a correct interface type in some cases. This meth

[jruby-dev] [jira] Created: (JRUBY-4515) RubyArray doesn't have toJava method which makes JavaEmbedUtils.rubyToJava fail

2010-01-22 Thread Yoko Harada (JIRA)
JRuby Issue Type: Bug Components: Java Integration Affects Versions: JRuby 1.5 Reporter: Yoko Harada Attachments: RubyArray.patch, RubyArrayToJavaSample.java Since RubyArray doesn't have toJava() method, RubyBasicObject.toJava() is used when JavaEmbedUtils.

[jruby-dev] [jira] Created: (JRUBY-4528) Add all Ruby Hash methods to a Java Map by "add_ruby_methods"

2010-01-31 Thread Yoko Harada (JIRA)
Components: Java Integration Affects Versions: JRuby 1.5 Reporter: Yoko Harada Attachments: add_ruby_methods.patch, AddHashMethodsToMap.java Attached patch enables to use "add_ruby_methods" method to proxied all Java Map type objects. The new method adds all Ru

[jruby-dev] [jira] Created: (JRUBY-4575) ant clean-all fails

2010-02-19 Thread Yoko Harada (JIRA)
ant clean-all fails --- Key: JRUBY-4575 URL: http://jira.codehaus.org/browse/JRUBY-4575 Project: JRuby Issue Type: Bug Components: Miscellaneous Affects Versions: JRuby 1.5 Reporter: Yoko Harada

[jruby-dev] [jira] Created: (JRUBY-4589) Ruby.tearDown is slow and causes bad performace of embedding API

2010-02-23 Thread Yoko Harada (JIRA)
Components: Core Classes/Modules Affects Versions: JRuby 1.5 Reporter: Yoko Harada Attachments: CallMethodToCompare.java, terminate_performance_improvement.patch Ruby.tearDown() method, especially, localContext.set(null); line of ThreadService.disposeCurrentThread() method

[jruby-dev] [jira] Created: (JRUBY-4614) test_socket.rb freezes on JDK6 since commit 0d5302c

2010-03-02 Thread Yoko Harada (JIRA)
/Modules Affects Versions: JRuby 1.5 Environment: OS X 10.5.8 Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248-9M3125) Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01-101, mixed mode) Reporter: Yoko Harada After the commit, 0d5302c - Wayne Meissner : Upgrade jffi to 1.0

[jruby-dev] [jira] Created: (JRUBY-4640) Ruby#tearDown method causes system exit, but should just raise exception for embedding API

2010-03-10 Thread Yoko Harada (JIRA)
Project: JRuby Issue Type: Bug Components: Core Classes/Modules Affects Versions: JRuby 1.5 Reporter: Yoko Harada Attachments: Ruby_tearDown.patch Ruby#tearDown() method causes system exit when error occurs while evaluating. However, embedding API wants

[jruby-dev] [jira] Created: (JRUBY-4641) Regression: JRuby can't handle non-ascii characters correctly

2010-03-10 Thread Yoko Harada (JIRA)
nents: Core Classes/Modules Affects Versions: JRuby 1.5 Reporter: Yoko Harada Since this commit: {noformat} 6323269fcfb2341ff8fa3b198037e1290982926 is the first bad commit commit 26323269fcfb2341ff8fa3b198037e1290982926 Author: Charles Oliver Nutter Date: Wed Mar 10 16:21:23

[jruby-dev] [jira] Created: (JRUBY-4749) require 'rbconfig' fails on GAE because of NullPointerException

2010-04-23 Thread Yoko Harada (JIRA)
Type: Bug Components: Core Classes/Modules Affects Versions: JRuby 1.5.0.RC1 Environment: Google App Engine Reporter: Yoko Harada Fix For: JRuby 1.5 Attachments: DahliaRbConfigLibraryLoad.java, RbConfigLibrary.patch Platform.ARCH returns null on GA

[jruby-dev] [jira] Created: (JRUBY-4940) Cucumber Japanese example raises exception on JRuby

2010-07-15 Thread Yoko Harada (JIRA)
Versions: JRuby 1.5.1 Environment: OSX Java 1.5.0_24/1.6.0_20 JRuby 1.5.1 Cucumber 0.8.5 Reporter: Yoko Harada Assignee: Thomas E Enebo Attachments: CucumberRunner.java Japanese example bundled in Cucumber raises the error: load error: /Users/yoko

[jruby-dev] [jira] Created: (JRUBY-5262) Embedding API needs another LocalContext model, global runtime and threadlocal variables

2010-12-18 Thread Yoko Harada (JIRA)
: JRuby Issue Type: Improvement Components: Embedding Affects Versions: JRuby 1.6 Reporter: Yoko Harada Assignee: Yoko Harada We should have this new localcontext model for some reasons. There are people who actually need this model for their apps

[jruby-dev] [jira] Created: (JRUBY-5321) RubyHash generification - refactoring of internal implementation to make it backed by Java's Map

2011-01-10 Thread Yoko Harada (JIRA)
-5321 Project: JRuby Issue Type: Improvement Components: Core Classes/Modules Reporter: Yoko Harada Assignee: Yoko Harada As discussed in JRUBY-4528, RubyHash's internal operation should be backed by Java's Map. This change w

[jruby-dev] [jira] Created: (JRUBY-5353) new map proxy's inspect method doesn't work when Map object is created in Ruby

2011-01-13 Thread Yoko Harada (JIRA)
ect: JRuby Issue Type: Bug Components: Core Classes/Modules Affects Versions: JRuby 1.6RC1 Reporter: Yoko Harada Fix For: JRuby 1.6 When java.util.Map type object is created in Ruby code, inspect method doesn't work at first. But, after using some Hash

[jruby-dev] [jira] Created: (JRUBY-5438) Regression. 1.6.0RC1 breaks Nokogiri's "rake package"

2011-01-28 Thread Yoko Harada (JIRA)
s: Core Classes/Modules Affects Versions: JRuby 1.6RC1 Reporter: Yoko Harada This problem doesn't exist in 1.5.5, 1.5.6 and latest on 1.5 branch. However, on 1.6.0RC1 "rake package" breaks. The screencast tenderlove created well explains the regression. http://www.y

[jruby-dev] [jira] Created: (JRUBY-5657) array on 1.9 mode breaks Nokogiri test.

2011-03-28 Thread Yoko Harada (JIRA)
: JRuby 1.6 Environment: OSX 10.6.7, JDK 1.6.0_24 Reporter: Yoko Harada MRI 1.9.2 and JRuby 1.8.6 passes test_each of test/xml/test_node.rb, but JRuby 1.9.2 fails. The failing test is below. To see what's going on, I added some print lines: {noformat} def test

[jruby-dev] [jira] (JRUBY-6601) UNIX socket tests in test/test_socket.rb cause deadlock

2012-04-13 Thread Yoko Harada (JIRA)
Yoko Harada created JRUBY-6601: -- Summary: UNIX socket tests in test/test_socket.rb cause deadlock Key: JRUBY-6601 URL: https://jira.codehaus.org/browse/JRUBY-6601 Project: JRuby Issue Type: Bug

[jruby-dev] [jira] (JRUBY-6729) [1.9] block argument to yield method is not correctly pass to a block. -- pp's seplist method

2012-06-15 Thread Yoko Harada (JIRA)
Priority: Major Reporter: Yoko Harada

[jruby-dev] [jira] Created: (JRUBY-1489) Adding encapulated parse methods for external uses, such as JSR223 API implementation

2007-10-30 Thread Yoko Harada (JIRA)
: JRuby Issue Type: Improvement Components: Java Integration Affects Versions: JRuby 1.0.2 Environment: All Reporter: Yoko Harada Attachments: diff-of-JavaEmbedUtils-for-jsr223.txt The changes provide two fixes for external uses of parse methods in

[jruby-dev] [jira] Created: (JRUBY-2126) jirb outputs ???? instead of Japanese characters

2008-02-16 Thread Yoko Harada (JIRA)
Versions: JRuby 1.1RC2 Environment: Windows XP, FreeBSD, Ubuntu, Mac OS X Reporter: Yoko Harada As reported at http://www.netbeans.org/issues/show_bug.cgi?id=108835, jirb outputs instead of correct Japanese characters. This bug comes from JRuby itself and also appears

[jruby-dev] [jira] Created: (JRUBY-2982) Unicode regular expressions by UTF-8 don't work

2008-09-09 Thread Yoko Harada (JIRA)
dules Affects Versions: JRuby 1.1.4 Environment: Linux, OSX 10.5.4 Reporter: Yoko Harada Unicode regular expressions by property names described in Oniguruma's document don't work if a script file is saved by UTF-8 encoding. For example. this raises an exception, &qu

[jruby-dev] [jira] Created: (JRUBY-3127) Inconsistent DynamicScope instances in evalScriptlet

2008-11-08 Thread Yoko Harada (JIRA)
/Modules Affects Versions: JRuby 1.1.5 Reporter: Yoko Harada Attachments: Ruby.patch Since JRuby 1.1.5, ManyVarsDynamicScope has been introduced in evalScriptlet and is used to parse scripts. However, implementations of a Node.interpret method remain unchanged and use

[jruby-dev] [jira] Created: (JRUBY-3627) Parsing related methods and class/interdace should have ManyVarsDynamicScope to share local variables

2009-05-06 Thread Yoko Harada (JIRA)
-3627 Project: JRuby Issue Type: Task Components: Embedding Affects Versions: JRuby 1.3RC1 Reporter: Yoko Harada Attachments: patch_for_parsing.txt To share local variables between Java and Ruby, and to save them in Java for further eval

[jruby-dev] [jira] Created: (JRUBY-3645) Wrong String comparison in StaticScope

2009-05-13 Thread Yoko Harada (JIRA)
Reporter: Yoko Harada Attachments: StaticScope.patch In namesAreInterned(String[] names) method of StaticScope class, a reference of String object is compared with its interned object. As in Java API document, this method should use String.equals() to compare "name

[jruby-dev] [jira] Created: (JRUBY-3662) JavaEmbedUtils should have methods to set/reset Standard I/O

2009-05-15 Thread Yoko Harada (JIRA)
Components: Embedding Affects Versions: JRuby 1.3 Reporter: Yoko Harada Attachments: ReassignStandardIO.patch Current implementation does not have any short-cut method to change $stdin(STDIN), $stdout(STDOUT, $defout, $>), and $stderr(STDERR, $deferr). Thus, an embed prog

[jruby-dev] [jira] Created: (JRUBY-3729) JRuby's internal change killed JSR 223 JRuby engine's global variable sharing

2009-06-02 Thread Yoko Harada (JIRA)
Issue Type: Bug Components: Embedding Affects Versions: JRuby 1.3RC2 Reporter: Yoko Harada JSR 223 JRuby engine's global variables sharing does not work on JRuby 1.3.0RC2. I confirmed this feature worked on the JRuby that I got from git on May 14. However, the

[jruby-dev] [jira] Created: (JRUBY-3883) JRuby 1.4.0dev OSGi bundle is not correctly built

2009-08-17 Thread Yoko Harada (JIRA)
Versions: JRuby 1.4 Reporter: Yoko Harada When I tried to start JRuby 1.4.0dev OSGi bundle on Apache Felix, I got exceptions. Perhaps, OSGi bundle is not correctly built. I built the bundle by "ant jar-complete." {noformat} Welcome to Felix. = -> start

[jruby-dev] [jira] Created: (JRUBY-3898) Two methods, tryCompile and runScript, in org.jruby.Ruby should be public to enable compileable option for embedding

2009-08-20 Thread Yoko Harada (JIRA)
://jira.codehaus.org/browse/JRUBY-3898 Project: JRuby Issue Type: Wish Components: Embedding Reporter: Yoko Harada Fix For: JRuby 1.4 Attachments: publicizing_compilation.patch In order to make CompileMode.JIT and CompileMode.FORCE

[jruby-dev] [jira] Created: (JRUBY-3949) Please add ant build file for Google App Engine users to create jruby-core/jruby-stdlib jars

2009-09-04 Thread Yoko Harada (JIRA)
Project: JRuby Issue Type: Wish Components: Miscellaneous Affects Versions: JRuby 1.4 Reporter: Yoko Harada Attachments: build-twinjars.xml, twinjars.build.properties Please add ant build file or a target in existing build.xml for Googel App Engine

[jruby-dev] [jira] Created: (JRUBY-4168) Ruby 1.9 compat mode needs to be set jruby.home when jruby.jar is used.

2009-10-27 Thread Yoko Harada (JIRA)
Components: Ruby 1.9 Affects Versions: JRuby 1.5 Reporter: Yoko Harada Assignee: Thomas E Enebo Attachments: Ruby19CompatMode.java Even though ruby scripts don't use shared libraries located in lib/ruby/site_ruby/shared/, Ruby 1.9 compat mode

[jruby-dev] [jira] Created: (JRUBY-4192) JRuby Embed should hide the warning, "already initialized constant STDERR"

2009-10-30 Thread Yoko Harada (JIRA)
Issue Type: Bug Components: Embedding Affects Versions: JRuby 1.4 Reporter: Yoko Harada Fix For: JRuby 1.5 Attachments: hideConstantWarning.diff When embedding API changes default output and error output, unwanted warning, "already initialized

[jruby-dev] [jira] Created: (JRUBY-4295) missing methods of Java integeration: method.static? and primitive_to_java

2009-12-02 Thread Yoko Harada (JIRA)
: Bug Components: Java Integration Affects Versions: JRuby 1.5 Reporter: Yoko Harada Attachments: missing_methods.patch testLowerJavaSupport.rb fails for a couple of missing methods. Firstly, JavaMethod.java doesn't have @JRubyMethod annotation over sta

[jruby-dev] [jira] Created: (JRUBY-4314) JavaProxy should be an interface to make Java integration easier

2009-12-05 Thread Yoko Harada (JIRA)
Components: Java Integration Affects Versions: JRuby 1.5 Reporter: Yoko Harada Attachments: ji_improvement.patch, ji_improvement.zip This is a proposal of Java integration improvement. The purpose of this proposal is to make the implementation of Java proxy objects much

[jruby-dev] [jira] Created: (JRUBY-4338) OutOfMemoryError is raised when runtime.getCurrentContext() and runtime.tearDown() are invoked many times

2009-12-09 Thread Yoko Harada (JIRA)
/browse/JRUBY-4338 Project: JRuby Issue Type: Bug Components: Core Classes/Modules Affects Versions: JRuby 1.5 Reporter: Yoko Harada Attachments: ManyEvals.java, threadservice.patch When runtime.getCurrentContext() and runtime.tearDown() are

  1   2   >