You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class Animal {
public void act(List<? extends Animal> list) {
for (Animal animal : list) {
animal.eat();
}
}
public void aboutShepherdDog(List<? super ShepherdDog> list) {
System.out.println("About shepherdDog");
}
public void eat() {
System.out.println("Eating");
}
}
class Dog extends Animal {}
class Cat extends Animal {}
class ShepherdDog extends Dog {}
when running in a cell, output is :
| class Animal {
| public void act(List<? extends Animal> list) {
| for (Animal animal : list) {
| animal.eat();
| }
| }
|
| public void aboutShepherdDog(List<? super ShepherdDog> list) {
| System.out.println("About shepherdDog");
| }
|
| public void eat() {
| System.out.println("Eating");
| }
| }
Unresolved dependencies:
- class ShepherdDog
but this code is OK for jshell.
kernel version: the the latest jjava-1.0-a4-kernelspec.zip was installed.
Activity
mutual dependent class not working #65
andrus commentedon Jun 14, 2025
Thanks for reporting this bug. It is still an issue with a5. We are investigating per #70
mutual dependent class not working #65
mutual dependent class not working #65
mutual dependent class not working #65
mutual dependent class not working #65
andrus commentedon Nov 22, 2025
Fixed, scheduled to be released in 1.0-a7