JRuby 1.7.14 Released, this version is now available for download:
Http://www.jruby.org/download
The JRuby 1.7 is designed to be compatible with the Ruby 1.9.3 version, and the improvement record is as follows:
Solved 30 issues.
Fixed a potential memory leak problem with the Jar file source
Because the Rails application is slow to start, the default is to disable invokedynamic
Load/require internal refactoring and simplification
Some compatibility issues were resolved
Bugs Fixed by 1.7.14:
#1923-string#start_with? Returns False when using a empty string #1905-tempfile and deleteonexit #1899-can ' t call static method on Java 8 inte
Rface #1898-fix The memory leak and actually close to the resources. #1889-npe from Org.jruby.java.proxies.ArrayJavaProxy.to_a #1888-native memory leak while reading files from inside a. J Ar #1859-jmx tries to double-bind a port while using bundle exec #1858-jruby with Java 8 4 The Times slower than Java 7 #1852-jrubyclassloader seems to have a problem with file URL pointing to jar ... #1850-embedded jars do don't get lo aded #1846-fix $LOAD _features paths for 1.8 #1818-fix arrayjavaproxy#to_a failure on arrays null #1813 containing N Not load resources to jar anymore with jar Uri #1809-apply minor Enebo ' comments #1808-fix Bigdecimal#round Behav IOR with NAN and INFINITY #1805-zlib CRC improvements #1803-fix minor bugs in ' setnativeenabled ', and expose it in SCRI Ptingcontainer #1802-fix Encoding::converter#insPect output #1799-mvn-pall fails at the documentation step #1790-make Time#to_r consistent with MRI #1777-SERVERSOC Ket#accept_nonblock returns the server ' s port, not the client ' s #1772-avoid sub-classing ThreadLocal since it would leak
In Envs such as. Wars #1765-added a Java_field to use in the JRUBYC command. #1762-enhanced The Java_class compiler it can handle multiple constructors #1750-refactor Loadservice to make use O F #1729-no valid struct layout for ethon::curl::slist #1676-empty hash optimization #1580-io.select raises Cancelledkeyexception on shutdown #1520-date comparison as Java objects #1435-bouncy-castle-java JARs missing when WA
Rbling with JRuby 1.7.10
JRuby is a ruby, java-based virtual machine (JVM) interpreter that combines the simplicity of the Ruby language with the powerful JVM's execution mechanism, including full integration with the Java library. Rails accelerates and simplifies the development of Web applications, but it's not mature enough, especially at high-end enterprise-level features. On the other hand, the Java platform and its virtual machines, libraries, and application servers have been upgraded in speed, stability and functionality, and are now recognized as the leading platform for high-end server applications. However, if the Java platform is not associated with emerging languages such as Ruby, it is likely to lag behind in fashion trends.
Sample code:
Require "Java"
include_class "Java.util.TreeSet"
include_class "com.example.CallMe" Include_class "
Com.example.ISpeaker "
puts" Hello from Ruby "
set = Treeset.new
set.add" foo "
set.add" Bar "
Set.add "Baz"
Set.each {|v| puts "value: #{v}"}
cm = callme.new
cm.hello
$globalCM. Hello
Class Calljava
include Ispeaker
def initialize
super
@count = 0
end
def say (msg)
Puts "Ruby saying #{msg}"
end
def addone (from)
# M.synchronize {
@count + 1
puts ' now Got # @count from #{from} '
# }
End