Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
alias_method intermittent issue in 1.7.6 & 1.7.8 (example to recreate included) #1260
This one is to pinpoint but I have observed it with the following combination:
What appears to occur is when bundler monkey patches Gem::Specification the 'alias_method' does results in the newly aliased method pointing to the newly created replacement. i.e. in bundler/lib/bundler/rubygems_ext.rb:
I've made a project that reproduces this issue. Interestingly this example fails in 1.7.6 as well but my real project succeeds in 1.7.6. I have not tried earlier versions.
You may check out https://github.com/jayjlawrence/alias_method and perform the following:
I've confirmed on Linux java -version
and OS X java -version
I am resolving this. The warbler issue implies this is no longer an issue and 1.7.x is approaching EOL. I changed from a specific version of warbler to the latest (also changing jruby-jars to 1.7.26) and I was able to generate the war file. From the original description it is also unclear whether this was a warbler or jruby issue to me so I will go with it was a warbler issue that was resolved.