-
-
Notifications
You must be signed in to change notification settings - Fork 942
Closed
Milestone
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels