Avoid Java21 jar; prefer version-checked Java8 class files.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -335,17 +335,8 @@ public sealed class SonicMfApiExecutor
|
||||
continue;
|
||||
}
|
||||
|
||||
string jar = Path.Combine(dir, "SonicMfContainerTool.jar");
|
||||
if (File.Exists(jar))
|
||||
{
|
||||
// JAR ohne Version-Check nur wenn Runtime >= 52; bei Unsicherheit neu kompilieren.
|
||||
if (runtimeMajor >= 52)
|
||||
{
|
||||
workDir = dir;
|
||||
classpathEntry = jar;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
// JAR absichtlich nicht blind nutzen – oft noch mit Java 21 gebaut.
|
||||
// Nur .class mit geprüftem major<=runtimeMajor.
|
||||
}
|
||||
|
||||
error ??= "Tools\\SonicMfContainerTool.class (Java 8) nicht gefunden.";
|
||||
|
||||
Reference in New Issue
Block a user