[#68845] [Ruby trunk - Feature #11056] [PATCH] lib/net/*: use io/wait methods instead of IO.select — normalperson@...
Issue #11056 has been updated by Eric Wong.
3 messages
2015/04/11
[#68945] [Ruby trunk - Feature #11083] [Open] Gemify net-telnet — shibata.hiroshi@...
Issue #11083 has been reported by Hiroshi SHIBATA.
4 messages
2015/04/21
[#68951] Re: [Ruby trunk - Feature #11083] [Open] Gemify net-telnet
— Eric Wong <normalperson@...>
2015/04/21
shibata.hiroshi@gmail.com wrote:
[#69012] [Ruby trunk - Feature #11105] [Open] ES6-like hash literals — shugo@...
Issue #11105 has been reported by Shugo Maeda.
5 messages
2015/04/29
[ruby-core:68988] [Ruby trunk - Bug #11096] 'private' access control bypassed when ||= is used
From:
nobu@...
Date:
2015-04-25 05:12:59 UTC
List:
ruby-core #68988
Issue #11096 has been updated by Nobuyoshi Nakada.
Description updated
Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN to 2.0.0: =
DONTNEED, 2.1: DONTNEED, 2.2: REQUIRED
----------------------------------------
Bug #11096: 'private' access control bypassed when ||=3D is used
https://bugs.ruby-lang.org/issues/11096#change-52241
* Author: Piotr Soko=C5=82owski
* Status: Open
* Priority: Normal
* Assignee:=20
* ruby -v: ruby 2.3.0dev (2015-04-24 trunk 50382) [x86_64-linux]
* Backport: 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: REQUIRED
----------------------------------------
Problematic code
~~~ruby
class A
def aa
self.bb ||=3D 0
end
private
def bb
1
end
end
A.new.aa
~~~
On 2.0 and 2.1 this produces 'NoMethodError: private method `bb' called for=
'. But since 2.2 this works and return '1'. Checked also on ruby-head from =
rvm.
This is similar #9907 but this allows to execute private methods by pretend=
ing that setter might be used.
--=20
https://bugs.ruby-lang.org/