BigDecimal has bad allocate+initialize sequence #365

Open
headius opened this Issue Oct 30, 2012 · 1 comment

Projects

None yet

2 participants

@headius
JRuby Team member

See #198 for details.

Basically, our BigDecimal defines "new" instead of an allocator and initialize method. Initialize is never called, and until my fix for #198, we did not observe subclasses at all. We need to correct this to allow subclassing BigDecimal.

@kares kares added a commit to kares/jruby that referenced this issue Jun 4, 2015
@kares kares basic BigDecimal sub-class test ... all working the same as MRI 1.8/1.9
... no need to address #365 as the allocate+initialize sequence seems MRI-like
53acf9a
@kares
JRuby Team member

it is actually how 1.8.7 / 1.9.3 behaves with BigDecimal sub-classes (does not invoke initialize)
... but the bug has been open for long enough to be ripe for 9K since 2.2.2 does call initialize :)

@kares kares added the JRuby 9000 label Jun 4, 2015
@kares kares added a commit that referenced this issue Jun 4, 2015
@kares kares basic BigDecimal sub-class test ... all working the same as MRI 1.8/1.9
... no need to address #365 as the allocate+initialize sequence seems MRI-like
967ca40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment