Issue #14840 has been updated by znz (Kazuhiro NISHIYAMA).

Status changed from Assigned to Closed

Resolved at r63661

----------------------------------------
Bug #14840: `warning: constant Net::ProtoServerError is deprecated` only via net/http
https://bugs.ruby-lang.org/issues/14840#change-72493

* Author: znz (Kazuhiro NISHIYAMA)
* Status: Closed
* Priority: Normal
* Assignee: naruse (Yui NARUSE)
* Target version: 2.6
* ruby -v: ruby 2.6.0dev (2018-06-10 trunk 63619) [x86_64-linux]
* Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN
----------------------------------------
When ruby loads `net/protocol` via `net/http`, `Net::ProtoServerError` is deprecated.
But via `net/smtp`, etc, it does not warn.
Is this intentional?

```
% ruby -r net/http -e 'Net::ProtoServerError'
-e:1: warning: constant Net::ProtoServerError is deprecated
% ruby -r net/smtp -e 'Net::ProtoServerError'
```



-- 
https://bugs.ruby-lang.org/