From: zn@... Date: 2018-06-10T04:51:15+00:00 Subject: [ruby-dev:50563] [Ruby trunk Bug#14840] `warning: constant Net::ProtoServerError is deprecated` only via net/http Issue #14840 has been reported by znz (Kazuhiro NISHIYAMA). ---------------------------------------- Bug #14840: `warning: constant Net::ProtoServerError is deprecated` only via net/http https://bugs.ruby-lang.org/issues/14840 * Author: znz (Kazuhiro NISHIYAMA) * Status: Assigned * 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/