Repository: polygene-java Updated Branches: refs/heads/develop 26e216db8 -> b028f64dc
:core:runtime ModuleClassLoader throws on AmbiguousTypeExceptions Exceptions were created but not thrown. Test suite pass with this change. Project: http://git-wip-us.apache.org/repos/asf/polygene-java/repo Commit: http://git-wip-us.apache.org/repos/asf/polygene-java/commit/ee44495a Tree: http://git-wip-us.apache.org/repos/asf/polygene-java/tree/ee44495a Diff: http://git-wip-us.apache.org/repos/asf/polygene-java/diff/ee44495a Branch: refs/heads/develop Commit: ee44495a99109eac586452dd9b8a7feafd395949 Parents: 1dfbfae Author: Paul Merlin <[email protected]> Authored: Mon May 15 08:58:59 2017 +0200 Committer: Paul Merlin <[email protected]> Committed: Mon May 15 08:58:59 2017 +0200 ---------------------------------------------------------------------- .../apache/polygene/runtime/structure/ModuleClassLoader.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/polygene-java/blob/ee44495a/core/runtime/src/main/java/org/apache/polygene/runtime/structure/ModuleClassLoader.java ---------------------------------------------------------------------- diff --git a/core/runtime/src/main/java/org/apache/polygene/runtime/structure/ModuleClassLoader.java b/core/runtime/src/main/java/org/apache/polygene/runtime/structure/ModuleClassLoader.java index 65873f1..2737261 100644 --- a/core/runtime/src/main/java/org/apache/polygene/runtime/structure/ModuleClassLoader.java +++ b/core/runtime/src/main/java/org/apache/polygene/runtime/structure/ModuleClassLoader.java @@ -76,7 +76,7 @@ class ModuleClassLoader if( iterator.hasNext() ) { // Ambiguous exception - new AmbiguousTypeException( + throw new AmbiguousTypeException( "More than one model matches the classname " + name + ":" + iterator.next() ); } @@ -119,7 +119,7 @@ class ModuleClassLoader if( layerModelsIter.hasNext() ) { // Ambiguous exception - new AmbiguousTypeException( + throw new AmbiguousTypeException( "More than one model matches the classname " + name + ":" + layerModelsIter.next() ); } @@ -160,7 +160,7 @@ class ModuleClassLoader if( usedLayersModelsIter.hasNext() ) { // Ambiguous exception - new AmbiguousTypeException( + throw new AmbiguousTypeException( "More than one model matches the classname " + name + ":" + usedLayersModelsIter.next() ); }
