Deprecated API
Contents
-
Deprecated ClassesClassDescriptionThe security manager, on which this class relies, cannot be used on Java 24 and later (and on Java 18 through 23 only with
-Djava.security.manager=allow). Use aSandboxPolicy(seeICookable.setSandboxPolicy(org.codehaus.commons.compiler.sandbox.SandboxPolicy)) and aSandboxExecutorinstead, which work on all JREs from Java 8 onMany methods that previously accepted a parameter of this type now take aJava.Modifier[](incompatible API change in JANINO version 3.0.13)
-
Deprecated FieldsFieldDescriptionSince autoboxing was introduced in JANINO, this feature is no longer necessary because you can use expression type
Object.class
-
Deprecated MethodsMethodDescriptionUse
IClassBodyEvaluator.setExtendedClass(Class)insteadUseICompiler.setSourceCharset(Charset)insteadUseIExpressionEvaluator.setExpressionType(Class)insteadUseClassBodyEvaluator.setExtendedClass(Class)insteadAuxiliary classes never really worked... don't use them.UseClassBodyEvaluator.createInstance(Reader)insteadUseClassBodyEvaluator.createInstance(Reader)insteadUseJavaSourceIClassLoader.setSourceCharset(Charset)insteadThis method is deprecated, because the concept described above is confusing. An application should close the underlyingInputStreamorReaderitself
-
Deprecated ConstructorsConstructorDescriptionUse
Compiler()and the various configuration setters insteadUseCompiler()and the various configuration setters insteadThis method is deprecated because it leaves the input file openThis method is deprecated because it leaves the input file openThis method is deprecated because it leaves the input file openThis method is deprecated because it leaves the input file open