Caller stacks now include AbstractScript.java
---------------------------------------------
Key: JRUBY-5477
URL: http://jira.codehaus.org/browse/JRUBY-5477
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.6RC2
Reporter: bob mcwhirter
Assignee: Thomas E Enebo
When playing with some stack traces from RSpec2, I notice AbstractScript.java
oddly in the stack. This breaks RSpec2's search for the first caller outside
of itself.
Here's a little debug demonstrating.
{noformat}
[INFO]
["/Users/bob/torquebox/torquebox/components/vfs/target/rubygems/gems/rspec-core-2.3.1/lib/rspec/core/metadata.rb:95:in
`for_example'",
[INFO]
"/Users/bob/torquebox/torquebox/components/vfs/target/rubygems/gems/rspec-core-2.3.1/lib/rspec/core/example.rb:17:in
`initialize'",
[INFO]
"/Users/bob/torquebox/torquebox/components/vfs/target/rubygems/gems/rspec-core-2.3.1/lib/rspec/core/example_group.rb:55:in
`it'",
[INFO] "AbstractScript.java:41:in `(root)'",
[INFO]
"/Users/bob/torquebox/torquebox/components/vfs/spec/file_spec.rb:244:in
`(root)'",
[INFO]
"/Users/bob/torquebox/torquebox/components/vfs/target/rubygems/gems/rspec-core-2.3.1/lib/rspec/core/example_group.rb:133:in
`module_eval'",
[INFO]
"/Users/bob/torquebox/torquebox/components/vfs/target/rubygems/gems/rspec-core-2.3.1/lib/rspec/core/example_group.rb:133:in
`subclass'",
[INFO]
"/Users/bob/torquebox/torquebox/components/vfs/target/rubygems/gems/rspec-core-2.3.1/lib/rspec/core/example_group.rb:119:in
`describe'",
[INFO]
"/Users/bob/torquebox/torquebox/components/vfs/spec/file_spec.rb:203:in
`(root)'",
[INFO]
"/Users/bob/torquebox/torquebox/components/vfs/spec/file_spec.rb:202:in `each'",
[INFO]
"/Users/bob/torquebox/torquebox/components/vfs/spec/file_spec.rb:202:in
`(root)'",
[INFO]
"/Users/bob/torquebox/torquebox/components/vfs/target/rubygems/gems/rspec-core-2.3.1/lib/rspec/core
{noformat}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
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