Gem::Package#create_symlink already falls back to FileUtils.cp_r on
Windows when symlink creation hits Errno::EACCES (Developer Mode off),
but JRuby 10.1 surfaces the same failure as TypeError from its
internal wincode path helper. Treat TypeError as the same recoverable
condition so JRuby/Windows users extracting a tarball that ships
symlinks get the copy fallback rather than a crash.
https://github.com/ruby/rubygems/commit/2d76d7bb73