diff --git a/core/src/main/java/lucee/runtime/functions/other/_CreateComponent.java b/core/src/main/java/lucee/runtime/functions/other/_CreateComponent.java index 63e577c827..053527e636 100755 --- a/core/src/main/java/lucee/runtime/functions/other/_CreateComponent.java +++ b/core/src/main/java/lucee/runtime/functions/other/_CreateComponent.java @@ -67,18 +67,15 @@ public static Object call(PageContext pc, Object[] objArr) throws PageException } } } - } if (cls == null) { try { cls = ClassUtil.loadClass(pc, path); } catch (Exception e) { - cfc = ComponentLoader.searchComponent(pc, null, path, null, null, false, true, true, true); - // ApplicationException ae = new ApplicationException("could not find component or class with name - // [" + path + "]"); + ApplicationException ae = new ApplicationException("could not find component or class with name [" + path + "]"); // ExceptionUtil.initCauseEL(ae, e); - // throw ae; + throw ae; } } diff --git a/test/general/NullOperator.cfc b/test/general/NullOperator.cfc index 1211f7ae0c..5f692121ff 100644 --- a/test/general/NullOperator.cfc +++ b/test/general/NullOperator.cfc @@ -1,6 +1,6 @@ component extends="org.lucee.cfml.test.LuceeTestCase"{ - - + import java.util.*; + import lucee.runtime.type.StructImpl; function run( testResults , testBox ) { describe( "test new operator", function() { @@ -24,14 +24,12 @@ component extends="org.lucee.cfml.test.LuceeTestCase"{ }); it(title="class: implicit with asterix import", body=function() { - import java.util.*; var map=new HashMap(); expect(map.size()).toBe(0); }); it(title="class: implicit with explicit import", body=function() { - import java.util.HashMap; - var map=new HashMap(); + var map=new StructImpl(); expect(map.size()).toBe(0); });