|
|
|
[
Permlink
| « Hide
]
Charles Oliver Nutter - 27/Mar/07 03:41 PM
This could be the big __jcreate! bug that's been hitting a few people. Must be fixed asap.
There are actually three issues here:
1. The reported issue is a (lack of) documentation bug. The initialize method just needs to call super with an appropriate number of arguments (none, in this case): class Weather < Observable def initialize(temp) super() @temp = temp end ..... class Meteorologist < Observer def initialize(weather) super() weather.addObserver(self) end ..... Doing that then brings us to: 2. self == nil when referenced from initialize in an interface proxy. I included the fix for this with the patch for Having that fixed brings us to: 3. Can't call a protected method (setChanged in this case) from a generated subclass. See related issues JRUBY-194 and -Bill As noted previously, the reported issue is a non-issue, and the secondary issue has been resolved. The remaining issue is the same as JRUBY-194.
Ok Bill, thanks for the clarification, I was confused.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||