Message800
Leo's patch makes Super2.__init__ return java.lang.Object's constructor. Calling Super2.__init__(self) from pySubclass only works because PyReflectedConstructor's __call__ interally looks up the proxy class of self which has access to the protected constructor. I don't think that's any better than the problem the patch fixes. It exposes incorrect information and it's really confusing code.
We're essentially hosed here because subclasses calling protected constructors is a partial visibility concept Python just doesn't have. Maybe we could make the Python super builtin give access to the proxy class's dict if called with a PyJavaClass? |
|
Date |
User |
Action |
Args |
2008-02-20 17:17:12 | admin | link | issue649582 messages |
2008-02-20 17:17:12 | admin | create | |
|