Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simplecov triggers load error when running coverage on jruby-9.0.0.0.pre1 #2587

Closed
bigsur0 opened this issue Feb 11, 2015 · 1 comment
Closed

Comments

@bigsur0
Copy link
Contributor

bigsur0 commented Feb 11, 2015

Originally filed under: simplecov-ruby/simplecov#368

The call to Coverage.start on line 31 triggers the load error below by way of SimpleCov.start {}

 25     def start(profile=nil, &block)
 26       if SimpleCov.usable?
 27         load_profile(profile) if profile
 28         configure(&block) if block_given?
 29         @result = nil
 30         self.running = true
 31         Coverage.start
 32       else
 33         warn "WARNING: SimpleCov is activated, but you're not running Ruby 1.9+ - no coverage analysis will happen"
 34         warn "Starting with SimpleCov 1.0.0, even no-op compatibility with Ruby <= 1.8 will be entirely dropped."
 35         false
 36       end
 37     end
$ rspec
LoadError: load error: spec_helper -- java.lang.LinkageError: loader constraint violation: loader (instance of org/jruby/util/JRubyClassLoader) previously initiated loading for a different type with name "org/jruby/ext/coverage/CoverageData"
                      require at org/jruby/RubyKernel.java:954
@headius
Copy link
Member

headius commented Mar 12, 2015

This was likely due to some older classloader logic we have since reverted. Copying @mkristian so he knows about this.

I'm going to mark this closed. It should be fine in 9k.pre2.

@headius headius added this to the 9.0.0.0.pre2 milestone Mar 12, 2015
@headius headius closed this as completed Mar 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants