![]() |
|
|
Issue Type:
|
Bug
|
Affects Versions:
|
JRuby 1.7.0.pre1, JRuby 1.6.7 |
Assignee:
|
Thomas E Enebo
|
Created:
|
09/Jul/12 3:42 PM
|
Description:
|
As indicated in https://github.com/csw/bioruby-maf/issues/31, a particular subset of unit tests involving the @sequence_filter instance variable of Bio::MAF::Parser (see lib/bio/maf/parser.rb) will pass when run by themselves, but fail when certain other unit tests (tagged with :bug in spec/bio/maf/parser_spec.rb) are also executed. If the instance variable is explicitly set to nil in the constructor, or any of the three #fetch_blocks unit tests tagged with :bug are not executed, or the variable is read with @sequence_filter rather than calling the Parser#sequence_filter accessor method, the bug disappears. I have not been able to narrow down the bug any further or come up with a good explanation of this; I suspect some sort of compiler bug.
I have come up with a workaround, but this is clearly a bug of some sort; MRI works fine with the same code.
To reproduce:
git clone https://github.com/csw/bioruby-maf.git
cd bioruby-maf
git checkout jruby-sequence-filter-bug
rvm use jruby-head [or equivalent]
bundle install
rspec -e sequence_filter
[passes]
rspec -t bug
[fails]
Let me know if I can help refine this any further.
|
Environment:
|
Mac OS X 10.7.4, Java 64-bit server VM 1.7.0_04. Reproduced under versions above as well as commit 903a934 from July 6.
|
Project:
|
JRuby
|
Priority:
|
Major
|
Reporter:
|
Clayton Wheeler
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
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