Message3648

Author garyh
Recipients garyh
Date 2008-10-09.22:07:18
SpamBayes Score 1.6479913e-05
Marked as misclassified No
Message-id <1223590040.52.0.926509435327.issue1147@psf.upfronthosting.co.za>
In-reply-to
Content
Jython fails to resolve references to static nested classes when
referenced through a subclass.

For an example, assume you have the hierarchy:

public class Base {
    public static class NestedBase {
        public static final int ONE=1;
    }
}

public class Child extends Base {
}

Then in jython:
print "Child.NestedBase.ONE=%d" % (Child.NestedBase.ONE)

This will throw:
AttributeError: class 'Child' has no attribute 'NestedBase'

even though the reference is valid in Java.
History
Date User Action Args
2008-10-09 22:07:20garyhsetrecipients: + garyh
2008-10-09 22:07:20garyhsetmessageid: <1223590040.52.0.926509435327.issue1147@psf.upfronthosting.co.za>
2008-10-09 22:07:20garyhlinkissue1147 messages
2008-10-09 22:07:19garyhcreate