From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS4713 221.184.0.0/13 X-Spam-Status: No, score=-3.1 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FORGED_GMAIL_RCVD,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by dcvr.yhbt.net (Postfix) with ESMTP id 96A261F453 for ; Wed, 13 Feb 2019 04:44:26 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 5F38512103B; Wed, 13 Feb 2019 13:44:23 +0900 (JST) Received: from o1678948x4.outbound-mail.sendgrid.net (o1678948x4.outbound-mail.sendgrid.net [167.89.48.4]) by neon.ruby-lang.org (Postfix) with ESMTPS id 727D0121030 for ; Wed, 13 Feb 2019 13:44:19 +0900 (JST) Received: by filter0190p3mdw1.sendgrid.net with SMTP id filter0190p3mdw1-10078-5C63A0A1-27 2019-02-13 04:44:17.927705974 +0000 UTC m=+3763.112382415 Received: from herokuapp.com (ec2-54-161-192-133.compute-1.amazonaws.com [54.161.192.133]) by ismtpd0010p1iad2.sendgrid.net (SG) with ESMTP id CGbsWwcjTauGJccodQ6bFA for ; Wed, 13 Feb 2019 04:44:17.733 +0000 (UTC) Date: Wed, 13 Feb 2019 04:44:19 +0000 (UTC) From: aaron.lasseigne@gmail.com To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 66980 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 15597 X-Redmine-Issue-Author: AaronLasseigne X-Redmine-Sender: AaronLasseigne X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-SG-EID: ync6xU2WACa70kv/Ymy4QrNMhiuLXJG8OTL2vJD1yS7WpZ9fh/MfX5xj7pqDZDU2eRDMRuc2tqaOb0 S2NebpULjPtIL7U+qaNSoYHqCHwG/+W2iU9/jeiS0Rp/+HIkTE/gap9lWnp2Bq2yndrT6DOs2ujIx/ gomohvLOwKka3Tn6lYO3ozofbagxvdAiEupD6jQTwOiQHSDPudlFDtqlPw== X-ML-Name: ruby-core X-Mail-Count: 91527 Subject: [ruby-core:91527] [Ruby trunk Bug#15597] syscall not returning true from private_method_defined? X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" Issue #15597 has been updated by AaronLasseigne (Aaron Lasseigne). I'm on MacOS 10.14.3 and yes it does raise a `NotImplementedError`. Even so, shouldn't it be shown as a private method? ---------------------------------------- Bug #15597: syscall not returning true from private_method_defined? https://bugs.ruby-lang.org/issues/15597#change-76788 * Author: AaronLasseigne (Aaron Lasseigne) * Status: Feedback * Priority: Normal * Assignee: * Target version: * ruby -v: * Backport: 2.4: UNKNOWN, 2.5: UNKNOWN, 2.6: UNKNOWN ---------------------------------------- `syscode` is a private method on `Object` but when checked with `private_method_defined?` it returns `false`. Ruby 2.6.1 ``` irb(main):001:0> Object.new.private_methods.sort.select { |pm| !Object.private_method_defined?(pm) } => [:syscall] ``` Ruby 2.5.3 ``` irb(main):001:0> Object.new.private_methods.sort.select { |pm| !Object.private_method_defined?(pm) } => [] ``` -- https://bugs.ruby-lang.org/