
| Key: |
PSL-269
|
| Type: |
Bug
|
| Status: |
Closed
|
| Resolution: |
Fixed
|
| Priority: |
Critical
|
| Assignee: |
Jens Halm
|
| Reporter: |
Ben London
|
| Votes: |
0
|
| Watchers: |
1
|
|
If you were logged in you would be able to see more operations.
|
|
|
|
The function getAllObjectsByType in org.spicefactory.parsley.core.context.impl.DefaultContext returns the incorrect array. The method reads:
public function getAllObjectsByType (type:Class) : Array {
checkState();
var defs:Array = _registry.getAllDefinitionsByType(type);
var objects:Array = new Array();
for each (var def:RootObjectDefinition in defs) {
objects.push(getInstance(def));
}
return defs;
}
But should in fact be:
public function getAllObjectsByType (type:Class) : Array {
checkState();
var defs:Array = _registry.getAllDefinitionsByType(type);
var objects:Array = new Array();
for each (var def:RootObjectDefinition in defs) {
objects.push(getInstance(def));
}
return objects;
}
The function correctly builds up and array of objects from the definitions but the returns the definitions instead of the objects.
|
|
Description
|
The function getAllObjectsByType in org.spicefactory.parsley.core.context.impl.DefaultContext returns the incorrect array. The method reads:
public function getAllObjectsByType (type:Class) : Array {
checkState();
var defs:Array = _registry.getAllDefinitionsByType(type);
var objects:Array = new Array();
for each (var def:RootObjectDefinition in defs) {
objects.push(getInstance(def));
}
return defs;
}
But should in fact be:
public function getAllObjectsByType (type:Class) : Array {
checkState();
var defs:Array = _registry.getAllDefinitionsByType(type);
var objects:Array = new Array();
for each (var def:RootObjectDefinition in defs) {
objects.push(getInstance(def));
}
return objects;
}
The function correctly builds up and array of objects from the definitions but the returns the definitions instead of the objects. |
Show » |
| There are no comments yet on this issue.
|
|