Skip to content

Commit

Permalink
https://github.com/lucee/Lucee/commit/a6d34572d6aeec7e428014407d3c976…
Browse files Browse the repository at this point in the history
…668e30604
  • Loading branch information
michaeloffner committed Dec 20, 2024
2 parents ad4ebf2 + a6d3457 commit a2d3cff
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2798,7 +2798,7 @@ public static Map<String, Startup> loadStartupHook(ConfigImpl config, Struct roo
if (existing != null) {
if (existing.cd.equals(cd)) continue;
try {
Method fin = Reflector.getMethod(existing.instance.getClass(), "finalize", new Class[0], null);
Method fin = Reflector.getMethod(existing.instance.getClass(), "finalize", new Class[0], true, null);
if (fin != null) {
fin.invoke(existing.instance, new Object[0]);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,7 @@ public Method getMethod(String methodName, Object[] args, boolean nameCaseSensit
Method method = getMethod(methodName, args, nameCaseSensitive, convertArgument, convertComparsion, null);
if (method != null) return method;

throw new NoSuchMethodException(
"No matching method for " + clazz.getDeclaringClass().getName() + "." + methodName + "(" + Reflector.getDspMethods(Reflector.getClasses(args)) + ") found.");
throw new NoSuchMethodException("No matching method for " + clazz.getName() + "." + methodName + "(" + Reflector.getDspMethods(Reflector.getClasses(args)) + ") found.");
}

@Override
Expand Down Expand Up @@ -452,8 +451,7 @@ public Constructor getConstructor(Object[] args, boolean convertArgument, boolea
Constructor constructor = getConstructor(args, convertArgument, convertComparsion, null);
if (constructor != null) return constructor;

throw new NoSuchMethodException(
"No matching Constructor for " + clazz.getDeclaringClass().getName() + "(" + Reflector.getDspMethods(Reflector.getClasses(args)) + ") found.");
throw new NoSuchMethodException("No matching Constructor for " + clazz.getName() + "(" + Reflector.getDspMethods(Reflector.getClasses(args)) + ") found.");
}

@Override
Expand Down
6 changes: 3 additions & 3 deletions loader/src/main/java/lucee/loader/util/log/Logging.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,22 @@ public static void dumpThreadPositions(File target) throws IOException {
}

public static void startupLog() {
String dumpPath = Util.getSystemPropOrEnvVar("lucee.dump.threads", null);
String dumpPath = Util._getSystemPropOrEnvVar("lucee.dump.threads", null);
if (!Util.isEmpty(dumpPath, true)) {

long start = System.currentTimeMillis();

int tmp = 100;
try {
tmp = Integer.parseInt(Util.getSystemPropOrEnvVar("lucee.dump.threads.interval", null));
tmp = Integer.parseInt(Util._getSystemPropOrEnvVar("lucee.dump.threads.interval", null));
}
catch (Throwable e) {
}
final int interval = tmp;

tmp = 10000;
try {
tmp = Integer.parseInt(Util.getSystemPropOrEnvVar("lucee.dump.threads.max", null));
tmp = Integer.parseInt(Util._getSystemPropOrEnvVar("lucee.dump.threads.max", null));
}
catch (Throwable e) {
}
Expand Down

0 comments on commit a2d3cff

Please sign in to comment.