#1923 - String#start_with? returns false when using an empty string #1905 - Tempfile and deleteOnExit #1899 - Can't call static method on Java 8 interface #1898 - Fix the memory leak and actually close the resources. #1889 - NPE from org.jruby.java.proxies.ArrayJavaProxy.to_a #1888 - native memory leak when reading files from inside a .jar #1859 - JMX tries to double-bind a port when using bundle exec #1858 - JRuby with Java 8 4 to 10 times slower than Java 7 #1852 - JRubyClassloader seems to have a problem with file urls pointing to jar ... #1850 - embedded jars do not get loaded #1846 - Fix $LOAD_FEATURES paths for 1.8 #1818 - fix ArrayJavaProxy#to_a failure on arrays containing null #1813 - can not load resources from jar anymore with jar uri #1809 - apply minor enebo's comments #1808 - Fix BigDecimal#round behavior with NAN and INFINITY #1805 - Zlib crc improvements #1803 - Fix minor bug in `setNativeEnabled`, and expose it in ScriptingContainer #1802 - Fix Encoding::Converter#inspect output #1799 - mvn -Pall fails at the documentation step #1790 - Make Time#to_r consistent with MRI #1777 - ServerSocket#accept_nonblock returns the server's port, not the client's #1772 - avoid sub-classing ThreadLocal since it will leak in envs such as .wars #1765 - added a java_field method for use in the jrubyc command. #1762 - enhanced the java_class compiler so it can handle multiple constructors #1750 - Refactor LoadService to make use of resources #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 warbling with JRuby 1.7.10
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
end
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有