beanshell / beanshell

Beanshell scripting language
Apache License 2.0
815 stars 183 forks source link

Parent class reload does not change innerclass parent #698

Open nickl- opened 1 year ago

nickl- commented 1 year ago

TODO: Inner class extends outer still requires outer class to be defined first, but then when reloaded we have two different outer classes.

BeanShell 3.0.0-SNAPSHOT.3665
class A {}
--> $0 = class A :Class
class A {
    class B extends A {}
}
--> $1 = class A :Class
A.class == A$B.class.getSuperclass(); // this should be true
--> $2 = false :boolean