Bugs item #27151, was opened at 20/09/2009 17:13
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=7857&aid=27151&group_id=2014

Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By:   (anoiaque)
Assigned to: Nobody (None)
Summary: Rcov-java bugFix

Initial Comment:
Hey,

First , thanks for rcov for jruby. 
I 've fixed a bug on it ,perhaps it hides a more large problem, but now i get 
my rcov reports for my jruby app.

Bug : When you lauch rcov($ rcov test/test_*.rb), you get :
rcov.rb:654:in `aggregate_data': NilClass can't be coerced into Fixnum 
(TypeError)"

An array contains nil values (normal?) , so +=nil give this error

I've fixed it like that :

line 654 : cov_arr.each_with_index{|x,i| dest[i] += x} 
replaced by :  cov_arr.each_with_index{|x,i| dest[i] += x if x }  


About : I work on active-record jdbc adapter for Progress OpenEdge Databases.
The beta version is released. It will be on Kenai Project.
If you are interested in ..

Bye
Best Regards

anoiaque



----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=7857&aid=27151&group_id=2014
_______________________________________________
Jruby-extras-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/jruby-extras-devel

Reply via email to