- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 1.8k
Open
Labels
Description
RubyGems warns if an extension gem in JRuby is built for one Java version and then the user switches to another Java version.
Ignoring io-console-0.5.6 because its extensions are not built. Try: gem pristine io-console --version 0.5.6
This affects all gems that have an extensions field in their gemspecs, because in all such cases RubyGems tracks whether the extension build has been run at all. It does not matter if the gem chooses not to actually build an extension, as is the case for some JRuby-specific versions of gems like io-console.
The problem is that RubyGems uses the value of RbConfig::CONFIG['arch'] to determine that platform. JRuby provides the Java version number in that field, which means that installing an extension on one Java version will warn if not re-installed for a different Java version.