more detail in assertion
This commit is contained in:
parent
014b1b52a3
commit
5af42e4585
|
@ -105,7 +105,7 @@ public abstract class ScriptEntryPoints implements Iterable<Entrypoint> {
|
|||
|
||||
public Entrypoint make(String scriptName) {
|
||||
IClass cls = cha.lookupClass(TypeReference.findOrCreate(scriptType.getClassLoader().getReference(), scriptName));
|
||||
assert cls != null && cha.isSubclassOf(cls, scriptType) && !cls.isAbstract();
|
||||
assert cls != null && cha.isSubclassOf(cls, scriptType) && !cls.isAbstract() : String.valueOf(cls) + " for " + scriptName;
|
||||
for (IMethod method : cls.getDeclaredMethods()) {
|
||||
if (keep(method)) {
|
||||
return new ScriptEntryPoint(method);
|
||||
|
|
Loading…
Reference in New Issue