[muranoPL] Class method 'initialize()' is not executed if object created in muranoPl code with command 'new'
Bug #1454264 reported by
Dmytro Dovbii
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Murano |
Fix Released
|
Medium
|
Stan Lagun |
Bug Description
1. Create a simple class:
Namespaces:
=: io.murano.
...
Name: SimpleClass
Extends: std:Application
Properties:
name:
Contract: $.string(
Methods:
initialize:
Body:
- $._someVar: 'hello'
deploy:
Body:
- $this.find(
2. Create instance of class SimpleClass somewhere in another code
$simpleObj: new(SimpleClass, name => 'testApp')
3. Try to execute method deploy() of created instance:
$simpleObj.deploy()
4. You'll see an exception:
"Access to uninitialized property _someVar in class io.murano.
It means that method 'initialize()' has't been executed.
description: | updated |
Changed in murano: | |
milestone: | none → 2015.1.1 |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in murano: | |
assignee: | nobody → Stan Lagun (slagun) |
status: | Triaged → In Progress |
Changed in murano: | |
assignee: | Stan Lagun (slagun) → Ekaterina Chernova (efedorova) |
Changed in murano: | |
assignee: | Ekaterina Chernova (efedorova) → Stan Lagun (slagun) |
Changed in murano: | |
assignee: | Stan Lagun (slagun) → Ekaterina Chernova (efedorova) |
Changed in murano: | |
assignee: | Ekaterina Chernova (efedorova) → Stan Lagun (slagun) |
Changed in murano: | |
assignee: | Stan Lagun (slagun) → Ekaterina Chernova (efedorova) |
Changed in murano: | |
assignee: | Ekaterina Chernova (efedorova) → Stan Lagun (slagun) |
Changed in murano: | |
assignee: | Stan Lagun (slagun) → Ekaterina Chernova (efedorova) |
Changed in murano: | |
assignee: | Ekaterina Chernova (efedorova) → Stan Lagun (slagun) |
Changed in murano: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/204099 /git.openstack. org/cgit/ openstack/ murano/ commit/ ?id=425766a7f8e e5ac16a67484c90 dc40836dea2ca4
Committed: https:/
Submitter: Jenkins
Branch: master
commit 425766a7f8ee5ac 16a67484c90dc40 836dea2ca4
Author: Stan Lagun <email address hidden>
Date: Tue Jul 21 16:56:43 2015 +0300
Migration to yaql 1.0
* Code migrated to yaql 1.0.0
* New MuranoPL object initialization
* Lots of refactoring
See referenced specs for more information
Implements: blueprint migrate- to-yaql- vnext a521e51082d5c84 dffca4b0b5c
Implements: blueprint object-construction
Depends-on: I7f314634ab5f08
Closes-Bug: #1454264
Change-Id: I740a4f83c76d8b 56a1da585a739d7 70ef823a524