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

JRuby 9.2.0.0 warns about BigDecimal.new even in non-verbose mode #5189

Closed
jeremyevans opened this issue May 24, 2018 · 0 comments
Closed

JRuby 9.2.0.0 warns about BigDecimal.new even in non-verbose mode #5189

jeremyevans opened this issue May 24, 2018 · 0 comments
Milestone

Comments

@jeremyevans
Copy link
Contributor

Environment

jruby 9.2.0.0 (2.5.0) 2018-05-24 81156a8 OpenJDK 64-Bit Server VM 25.144-b01 on 1.8.0_144-b01 +jit [OpenBSD-x86_64]

Also verified on:

jruby 9.2.0.0 (2.5.0) 2018-05-24 81156a8 Java HotSpot(TM) 64-Bit Server VM 25.131-b11 on 1.8.0_131-b11 +jit [mswin32-x86_64]

Unlikely to be operating system or java version specific.

Expected Behavior

JRuby 9.2.0.0 should only warn about BigDecimal.new when run in verbose mode, as CRuby does:

$ ruby -r bigdecimal -e 'p BigDecimal.new("1")'
0.1e1
$ ruby -vr bigdecimal -e 'p BigDecimal.new("1")'
ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-openbsd]
-e:1: warning: BigDecimal.new is deprecated; use Kernel.BigDecimal method instead.
0.1e1

Actual Behavior

JRuby 9.2.0.0 warns about BigDecimal.new even in non-verbose mode:

$ jruby -r bigdecimal -e 'p BigDecimal.new("1")'
-e:1: warning: BigDecimal.new is deprecated
0.1e1
$ jruby -vr bigdecimal -e 'p BigDecimal.new("1")'
jruby 9.2.0.0 (2.5.0) 2018-05-24 81156a8 OpenJDK 64-Bit Server VM 25.144-b01 on 1.8.0_144-b01 +jit [OpenBSD-x86_64]
-e:1: warning: BigDecimal.new is deprecated
0.1e1
@headius headius added this to the JRuby 9.2.1.0 milestone May 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants