Ticket #36 (closed defect: fixed)

Opened 9 months ago

Last modified 9 months ago

planet.util.Interfaces check bug

Reported by: jordi Owned by: jordi
Priority: major Milestone: 3.1
Component: planetsim Version: PlanetSim 3
Keywords: Interfaces, check, bug Cc:

Description (last modified by jordi) (diff)

Bug on method implementedInterface(Class, String) //reported by Niels Sluijs and a PhD-student of Ghent University

The problem appears on that the Interface implementation check is performed on every superclass. The fact is that any superclass (at any stage till the java.lang.Object) could implement various Interfaces which really "extends" from the required Interface. Nevertheless, the current implementation throws an Exception when the given Class really implements the required Interface.

Change History

Changed 9 months ago by jordi

  • status changed from new to assigned
  • description modified (diff)

Solution proposed by Niels Sluijs and a PhD-student of Ghent University:

Perform a recursive approach for every implemented Interface on every superclass.

Changed 9 months ago by jordi

  • status changed from assigned to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.