We got the following class signatures:
car:
public class car<E extends Parts> [...] parts:
public abstract class parts<E extends Stuff> [...] public class Tire<T extends StoneTire> extends parts<T>[...] stuff:
public abstract class Stuff [...] public class Painting extends Parts [...] [...] We want to save the car in a Treeset < Parts< E>> (in the "Car"-class), but the compiler says nope :[ Because if we try to save a Tire in a City of Tools he cant find the StoneTire type in the bounds of Tool.
Mused in your method declared?toolCityis.