Bugs: Browse | Submit New | Admin

[#27151] Rcov-java bugFix

Date:
2009-09-20 17:13
Priority:
3
Submitted By:
(anoiaque)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
Rcov-java bugFix

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

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item