-
Deprecated ClassesClassDescriptionA change in Java 9, 10, and 11 prevents this class from working as it should. It was used by scrunner and lsnof and those were changed so that this class is no longer used.This permission is no longer necessary.The security manager is being removed from Java
-
Deprecated MethodsMethodDescriptionReplaced by
Simulation.currentTicks()
this method is not needed.This method has been moved to the classMathOps
to eliminate a module dependency.This method has been moved to the classMathOps
to eliminate a module dependency.This method has been moved to the classMathOps
to eliminate a module dependency.This method has been moved to the classMathOps
to eliminate a module dependency.One use of this method is in estimating the time or space needed by an algorithm, where precise values are not needed.
Note: when the accuracy is set to 1.0, the value returned is floor(log2(n)).
This method has been moved to the classMathOps
to eliminate a module dependency.This method has been moved to the classMathOps
to eliminate a module dependency.One use of this method is in estimating the time or space needed by an algorithm, where precise values are not needed.
This method has been moved to the classMathOps
to eliminate a module dependency.This method is provided to supplement the method
Math.pow(double, double)
by providing a method whose second argument is an integer. This is useful in some infinite series expansions of special functions. For example, for small z, the spherical Bessel function jn(z) has a first term proportional to zn in its Taylor series expansion.The time complexity is O(log2 n). Timing measurements indicate that it is faster than
java.lang.Math.pow
(which handles more cases).This method has been moved to the classMathOps
to eliminate a module dependency.This method is provided to supplement the method
Math.pow(double, double)
by providing a method whose second argument is an integer. This is useful in some infinite series expansions of special functions. For example, for small z, the spherical Bessel function jn(z) has a first term proportional to zn in its Taylor series expansion (for larger values of |z|, the implementation inFunctions
does not use this Taylor series).The time complexity is O(log2 n). Timing measurements indicate that it is faster than
java.lang.Math.pow
(which handles more cases).This method has been moved to the classMathOps
to eliminate a module dependency.This method is provided to supplement the method
Math.pow(double, double)
by providing a method whose second argument is the numerator of the power and whose third argument is the denominator.This method has been moved to the classMathOps
to eliminate a module dependency.This method is provided to supplement the method
Math.pow(double, double)
by providing a method whose second argument is a long integer. This is useful in some infinite series expansions of special functions. For example, for small z, the spherical Bessel function jn(z) has a first term proportional to zn in its Taylor series expansion (for larger values of |z|, the implementation inFunctions
does not use this Taylor series).The time complexity is O(log2 n). Timing measurements indicate that it is faster than
java.lang.Math.pow
(which handles more cases).This method has been moved to the classMathOps
to eliminate a module dependency.The second argument must be non-negative when the first argument is an even integer.
The name of this method was confusing. Please useCloner.makeCastedClone(Class,Object)
instead.InputStream.transferTo(OutputStream)
was introduced in Java 9, and with access to the internal state of the input stream, transferTo should be more efficient
-
Deprecated ConstructorsConstructorDescriptiontrusted scripting contexts are not applicable when the security manager has been eliminated.
The original documentation was:
With the default class loader, each local helper class has to be loaded explicitly, typically by calling the helper's
register()
static method from the corresponding class implementing a dynamic method.DMClassLoader
eliminates the need to do that by calling theregister()
methods automatically.To use this class loader as the system class loader, set the system property java.lang.class.loader to org.bzdev.lang.DMClassLoader when the JVM is started. One may also set the context class loader for each thread.
This class loader delegates class loading in the same way as
java.lang.ClassLoader
but adds the dynamic-method initialization described above. It also verifies that a class implementing dynamic methods and its local helper have the same code source and are in the same package.If run when the default security manager is installed, the runtime permission getProtectionDomain must be granted. This is used for verifying that dynamic-method annotations are in the same protection domain as this class loader, and that a class and its helper class are similarly in the same protection domain in addition to being in the same package.