Reproducer for asciidoctor/asciidoctorj#1309
This repository reproduces an issue where Pathname::glob seems to behave differently between JRuby 9.4.8.0 and 10.0.2.0.
Follow these steps to reproduce:
-
Download the rouge gem:
curl -LO https://rubygems.org/downloads/rouge-3.30.0.gem
-
Install the rouge gem in the target directory by running this command:
GEM_HOME=$(pwd)/target/classes GEM_PATH=$(pwd)/target/classes java -jar ~/.m2/repository/org/jruby/jruby-complete/10.0.2.0/jruby-complete-10.0.2.0.jar -S jgem install rouge-3.30.0.gem
-
Run the reproducer with JRuby 9.4.12.0:
➜ jrubygemtest git:(main) ✗ mvn exec:java [INFO] Scanning for projects... [INFO] [INFO] ----------------------< org.example:jrubygemtest >---------------------- [INFO] Building jrubygemtest 1.0-SNAPSHOT [INFO] from pom.xml [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- exec:3.3.0:java (default-cli) @ jrubygemtest --- LEXER DIR: uri:classloader:/gems/rouge-3.30.0/lib/rouge/lexers/ found uri:classloader:/gems/rouge-3.30.0/lib/rouge/lexers/abap.rb found uri:classloader:/gems/rouge-3.30.0/lib/rouge/lexers/actionscript.rb found uri:classloader:/gems/rouge-3.30.0/lib/rouge/lexers/ada.rb found uri:classloader:/gems/rouge-3.30.0/lib/rouge/lexers/apache.rb found uri:classloader:/gems/rouge-3.30.0/lib/rouge/lexers/apex.rb found uri:classloader:/gems/rouge-3.30.0/lib/rouge/lexers/apiblueprint.rb found uri:classloader:/gems/rouge-3.30.0/lib/rouge/lexers/apple_script.rb ... found uri:classloader:/gems/rouge-3.30.0/lib/rouge/lexers/xquery.rb found uri:classloader:/gems/rouge-3.30.0/lib/rouge/lexers/yaml.rb found uri:classloader:/gems/rouge-3.30.0/lib/rouge/lexers/yang.rb found uri:classloader:/gems/rouge-3.30.0/lib/rouge/lexers/zig.rb DONE
-
Run the reproducer with the latest version 10.0.2.0
jrubygemtest git:(main) ✗ mvn exec:java -Dversion.jruby=10.0.2.0 [INFO] Scanning for projects... [INFO] [INFO] ----------------------< org.example:jrubygemtest >---------------------- [INFO] Building jrubygemtest 1.0-SNAPSHOT [INFO] from pom.xml [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- exec:3.3.0:java (default-cli) @ jrubygemtest --- LEXER DIR: uri:classloader:/gems/rouge-3.30.0/lib/rouge/lexers/ DONE