Skip to content

[fix] properly calculate warning ($VERBOSE) default#5602

Merged
kares merged 1 commit intoruby-2.6from
verbose-default
Feb 19, 2019
Merged

[fix] properly calculate warning ($VERBOSE) default#5602
kares merged 1 commit intoruby-2.6from
verbose-default

Conversation

@kares
Copy link
Member

@kares kares commented Feb 10, 2019

noticed this while implementing the deprecation warning Object#=~ for 2.6
the 3 state warning level was only using true/false states so it ended up printing warnings by default
JRuby should keep a nil (falsy) warning level by default, as Verbosity enum was intended to

no one complained about this on 9.1/9.2 so I am targeting 2.6 for now, its present on 9.2 as well

... since warnings should not be printed by default
@enebo
Copy link
Member

enebo commented Feb 11, 2019

@kares did you happen to find any tests about this tri-state nature? I think we can land this in 2.5 if you want as well. I agree this is probably pretty minor since no one reported but if we got some coverage it can definitely go in for 9.2.7.0.

@kares
Copy link
Member Author

kares commented Feb 11, 2019

have not looked for a test but due warnings from Object#=~ being deprecated on 2.6 - it caused failures

@kares kares added this to the JRuby 9.3.0.0 milestone Feb 11, 2019
@enebo
Copy link
Member

enebo commented Feb 11, 2019

@kares then we can 2.6 and figure out if we want to cherry pick later.

@headius
Copy link
Member

headius commented Feb 13, 2019

Have we seen this happening with 9.2? It seems to be doing the right thing right now.

@kares
Copy link
Member Author

kares commented Feb 13, 2019

@headius confused, what is doing the right thing ... is this redundant than for 9.2 or shall we back-port?

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

Successfully merging this pull request may close these issues.

3 participants