Possible problem with inheritance

Bug #1328176 reported by Dmitry Teselkin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Murano
Fix Released
Critical
Stan Lagun

Bug Description

Let's suppose we have two classes: A and B. Class B extends class A.

An attempt to use Resources by code from an instance of class B will try to use resources of class B, even if those resources are consumed by the code inherited from class A.

description: updated
Stan Lagun (slagun)
Changed in murano:
importance: Undecided → Critical
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to murano (master)

Fix proposed to branch: master
Review: https://review.openstack.org/98837

Changed in murano:
assignee: nobody → Stan Lagun (slagun)
status: New → In Progress
Changed in murano:
milestone: none → juno-1
Stan Lagun (slagun)
Changed in murano:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to murano (master)

Reviewed: https://review.openstack.org/98837
Committed: https://git.openstack.org/cgit/stackforge/murano/commit/?id=504a8a60391287cd267431caad24546a1ac691eb
Submitter: Jenkins
Branch: master

commit 504a8a60391287cd267431caad24546a1ac691eb
Author: Stan Lagun <email address hidden>
Date: Mon Jun 9 21:02:50 2014 +0400

    Make sys:Resources class use resources belonging to its owner

    io.murano.system.Resources class tried to access resource files
    belonging to the instance's class rather than the class that owns
    sys:Resources instance. So when derived class is located in different
    package than its base class inherited methods become using resources
    of derived class package.

    Closes bug: #1328176

    Change-Id: I85719c612ad0d62c82f83f9e584278fba0825688

ruhe (ruhe)
Changed in murano:
status: Fix Committed → Fix Released
Changed in murano:
milestone: juno-1 → 2014.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.