Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.5.5
-
Fix Version/s: JRuby 1.6RC2
-
Component/s: Core Classes/Modules
-
Labels:None
-
Environment:Darwin igrigorik-2.local 10.5.0 Darwin Kernel Version 10.5.0: Fri Nov 5 23:20:39 PDT 2010; root:xnu-1504.9.17~1/RELEASE_I386 i386
-
Number of attachments :
Description
First ran into this issue on 1.5.2: https://gist.github.com/708884
Upgrading to 1.5.5 makes the above example work as expected (with and without --1.9 flag). However, trying to run some more complicated code with same pattern surfaces the same problem:
1) Agent::Channel should have a name
Failure/Error: lambda { Channel.new(:type => String) }.should raise_error(Channel::NoName)
uninitialized constant Channel
# spec/channel_spec.rb:10
# :1
The include is exactly one line above this test:
https://github.com/igrigorik/agent/blob/master/spec/channel_spec.rb#L7
Steps to reproduce:
git clone git://github.com/igrigorik/agent.git; cd agent ruby -Ilib -Ispec spec/channel_spec.rb ruby --1.9 -Ilib -Ispec spec/channel_spec.rb
It could well be that I'm just doing something silly.. am I?
Activity
Hiro Asari
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Description |
First ran into this issue on 1.5.2: https://gist.github.com/708884
Upgrading to 1.5.5 makes the above example work as expected (with and without --1.9 flag). However, trying to run some more complicated code with same pattern surfaces the same problem: <pre> 1) Agent::Channel should have a name Failure/Error: lambda { Channel.new(:type => String) }.should raise_error(Channel::NoName) uninitialized constant Channel # spec/channel_spec.rb:10 # :1 </pre> The include is exactly one line above this test: https://github.com/igrigorik/agent/blob/master/spec/channel_spec.rb#L7 Steps to reproduce: git clone git://github.com/igrigorik/agent.git; cd agent ruby -Ilib -Ispec spec/channel_spec.rb ruby --1.9 -Ilib -Ispec spec/channel_spec.rb --- It could well be that I'm just doing something silly.. am I? |
First ran into this issue on 1.5.2: https://gist.github.com/708884
Upgrading to 1.5.5 makes the above example work as expected (with and without {{--1.9}} flag). However, trying to run some more complicated code with same pattern surfaces the same problem: {noformat} 1) Agent::Channel should have a name Failure/Error: lambda { Channel.new(:type => String) }.should raise_error(Channel::NoName) uninitialized constant Channel # spec/channel_spec.rb:10 # :1 {noformat} The include is exactly one line above this test: https://github.com/igrigorik/agent/blob/master/spec/channel_spec.rb#L7 Steps to reproduce: {noformat} git clone git://github.com/igrigorik/agent.git; cd agent ruby -Ilib -Ispec spec/channel_spec.rb ruby --1.9 -Ilib -Ispec spec/channel_spec.rb {noformat} It could well be that I'm just doing something silly.. am I? |
Charles Oliver Nutter
made changes -
| Fix Version/s | JRuby 1.6 [ 16275 ] |
Charles Oliver Nutter
made changes -
| Fix Version/s | JRuby 1.6 [ 17062 ] | |
| Fix Version/s | JRuby 1.6RC1 [ 16275 ] |
Charles Oliver Nutter
made changes -
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Assignee | Charles Oliver Nutter [ headius ] | |
| Fix Version/s | JRuby 1.6RC2 [ 17075 ] | |
| Fix Version/s | JRuby 1.6 [ 17062 ] | |
| Resolution | Fixed [ 1 ] |
Charles Oliver Nutter
made changes -
| Status | Resolved [ 5 ] | Closed [ 6 ] |