K
kishan bisht
Hi,
I have a situation like this
public class Base {
public void run(){}
}
public class Outer {
public static class Inner extends Base {
}
}
Now the problem is that at runtime my test wants to use inner class
and its inherited run method but I get an exception saying that it
can't find the run() method.
The problem is solved if I change my inner class to this
public class Outer {
public static class Inner extends Base {
public void run() {
super.run();
}
}
}
Is there a way here or do I have to change my inner class to be
non-static as I do not want to implement dummy run()in my inner
classes.
Thanks in advance.
Kishan
I have a situation like this
public class Base {
public void run(){}
}
public class Outer {
public static class Inner extends Base {
}
}
Now the problem is that at runtime my test wants to use inner class
and its inherited run method but I get an exception saying that it
can't find the run() method.
The problem is solved if I change my inner class to this
public class Outer {
public static class Inner extends Base {
public void run() {
super.run();
}
}
}
Is there a way here or do I have to change my inner class to be
non-static as I do not want to implement dummy run()in my inner
classes.
Thanks in advance.
Kishan