Deprecated API
Contents
- Terminally Deprecated
- Interfaces
- Classes
- Enum Classes
- Exception Classes
- Fields
- Methods
- Constructors
- Annotation Interface Elements
-
Terminally Deprecated ElementsElementDescriptionuse RubyHash.op_aref insteaduse RubyHash.op_aset instead
-
Deprecated Classes
-
Deprecated Enum Classes
-
Deprecated Exception Classes
-
Deprecated Fields
-
Deprecated MethodsMethodDescriptionAs of JRuby 1.5.0, Replaced by getError()As of JRuby 1.5.0, replaced by getInput().As of JRuby 1.5.0, replaced by getOutput().As of JRuby 1.5.0. Use getProvider().getRuntime() method instead.Use setProfilingMode insteadUse
RubyBigDecimal.sign(ThreadContext)
instead.kept due AR-JDBC (uses RubyClass.newInstance(...) to 'fast' allocate a Date instance)internal Date.new!internal Date.new!internal Date.new!internal Date.new!org.jruby.gen.org$jruby$javasupport$ext$JavaLangReflect$Method$POPULATOR.populate(RubyModule, Class) org.jruby.gen.org$jruby$javasupport$ext$JavaTime$LocalDateTime$POPULATOR.populate(RubyModule, Class) org.jruby.gen.org$jruby$javasupport$ext$JavaTime$ZonedDateTime$POPULATOR.populate(RubyModule, Class) org.jruby.gen.org$jruby$javasupport$Java$ByteArrayProxyMethods$POPULATOR.populate(RubyModule, Class) org.jruby.gen.org$jruby$javasupport$proxy$JavaProxyConstructor$POPULATOR.populate(RubyModule, Class) UseRubyModule.defineConstant(ThreadContext, String, IRubyObject)
with a reference to Object.UseAccess.integerClass(ThreadContext)
instead.UseRubyModule.defineConstantsFrom(ThreadContext, Class)
instead.UseError.argumentError(ThreadContext, int, int)
instead.Use the versions with zero, one, or two args.Use the versions with zero, one, or two args.UseRubyArray.at(ThreadContext, IRubyObject)
instead.Use the versions with zero, one, or two args.Use the versions with zero, one, or two args.RubyArray implements List, use it directlyUse the versions with zero, one, or two args.Use the versions with zero, one, or two args.UseCreate.allocArray(ThreadContext, int)
insteadUse the versions with zero, one, or two args.UseRubyArray.toJavaArray(ThreadContext)
instead.UseRubyArray.unshift(ThreadContext)
insteadUseRubyBasicObject.hash(ThreadContext)
instead.UseRubyBasicObject.to_s(ThreadContext)
instead.UseRubyClass.reifiedClass()
instead.Use finvoke if you do not want visibility-checking or invokeFrom if you do.Use finvoke if you do not want visibility-checking or invokeFrom if you do.Use finvoke if you do not want visibility-checking or invokeFrom if you do.Use finvoke if you do not want visibility-checking or invokeFrom if you do.Use finvoke if you do not want visibility-checking or invokeFrom if you do.Use finvoke if you do not want visibility-checking or invokeFrom if you do.Use finvoke if you do not want visibility-checking or invokeFrom if you do.Use finvoke if you do not want visibility-checking or invokeFrom if you do.Use finvoke if you do not want visibility-checking or invokeFrom if you do.Use finvoke if you do not want visibility-checking or invokeFrom if you do.UseRubyClass.allocator(ObjectAllocator)
instead.UseRubyClass.marshalWith(ObjectMarshal)
instead.UseRubyClass.reifiedClass(Class)
instead.no longer usedno longer useduse RubyHash.op_aref insteaduse RubyHash.op_aset insteadUseRubyInteger.numToUint(ThreadContext, IRubyObject)
instead.UseRubyIO.binmode(ThreadContext)
instead.UseRubyIO.sync_set(ThreadContext, IRubyObject)
instead.UseRubyModule.defineAnnotatedConstant(ThreadContext, Field)
instead.UseRubyModule.defineConstants(ThreadContext, Class)
instead.UseRubyModule.defineMethods(ThreadContext, Class[])
and organize your method definitions where you only specify the .class and not needing to add a name as a discriminator. This method is fairly inefficient since it is rescanning the class for all methods to find a single version.UseRubyModule.defineMethods(ThreadContext, Class[])
instead and organize your code around all JRubyMethod annotations in that .class being defined.UseRubyModule.defineMethods(ThreadContext, Class[])
instead.UseRubyModule.baseName(String)
instead.UseRubyModule.superClass(RubyClass)
instead.UseRubyModule.undefMethods(ThreadContext, String...)
instead.UseRubyNumeric.coerce(ThreadContext, IRubyObject)
instead.UseConvert.asInteger(ThreadContext, double)
instead.UseConvert.asFloat(ThreadContext, long)
instead.UseRubyNumeric.asDouble(ThreadContext)
instead.UseRubyNumeric.asInt(ThreadContext)
instead.UseRubyNumeric.asLong(ThreadContext)
instead.UseConvert.asFixnum(ThreadContext, long)
instead.UseRubyNumeric.isNegativeNumber(ThreadContext)
instead.UseRubyNumeric.isPositiveNumber(ThreadContext)
instead.UseRubyNumeric.isZero(ThreadContext)
instead.UseConvert.toDouble(ThreadContext, IRubyObject)
instead.UseConvert.toDouble(ThreadContext, IRubyObject)
instead.no longer used - uses Java's System.outUSeRubyRational.asDouble(ThreadContext)
instead.UseCreate.newStruct(ThreadContext, RubyClass, Block)
instead.UseRubySymbol.length(ThreadContext)
instead.Prefer version that receives ByteBuffer rather than recreating every time.UseRubyTime.invalidUTCOffset(ThreadContext)
insteadUseRubyTime.invalidUTCOffset(ThreadContext)
insteaduseRubyTime.getMicros()
insteaduseRubyTime.setMicros(int)
insteadUseRubyTime.zone(ThreadContext)
instead.UseIRubyObject.checkStringType()
instead.org.jruby.runtime.Helpers.invoke(ThreadContext, IRubyObject, String, IRubyObject[], CallType, Block) Use finvoke if you do not want visibility-checking or invokeFrom if you do.Use finvoke if you do not want visibility-checking or invokeFrom if you do.Use finvoke if you do not want visibility-checking or invokeFrom if you do.org.jruby.runtime.Helpers.isJavaExceptionHandled(Throwable, IRubyObject, IRubyObject, ThreadContext) use the trivially-inlinable static versionuse the trivially-inlinable static versionThis was only used by Module#const_defined, but was difficult to match MRI's equivalent in this formNo replacement; not intended to be made publicOpens a new input stream to read the contents of a resource and returns it. Note that implementations may be allocating native memory for the stream, so callers need to close this when they are done with it. users of this method should follow the pattern: close the stream where you open it.useFileResource.openChannel(int, int)
insteadprefer usingLoggerFactory.getLogger(java.lang.Class)
if possible
-
Deprecated Annotation Interface ElementsAnnotation Interface ElementDescription