The same object is defined twice in different packages:
packageX/Object1.java
and
packageY/Object1.java
[Background: packageX is part of a webclient service, getting objects from a server. packageY is a java client using the objects retrieved by this webclient service].
A function from packageX returns Object1, and the compiler throws an error when I try to use this object as an Object1 from packageY (which I can understand).
=> Is mapping packageX/Object1.java to packageY/Object1.java my only option? Or do I miss something?