This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| From f841e95ae10406c1ee5decfd55486639d1d34521 Mon Sep 17 00:00:00 2001 | |
| From: Hiro Asari <asari.ruby@gmail.com> | |
| Date: Fri, 16 Apr 2010 22:29:34 -0500 | |
| Subject: [PATCH] Fix JRUBY-4389: Bug in AbstractEncoding? | |
| --- | |
| .../jcodings/specific/NonStrictUTF8Encoding.java | 6 ++++++ | |
| src/org/jcodings/unicode/UnicodeEncoding.java | 2 +- | |
| 2 files changed, 7 insertions(+), 1 deletions(-) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ time jruby -J-Xmx250m -J-Djruby.jit.maxsize=1000000 -S rake test:scanner:nitro | |
| (in /Users/asari/Development/src/coderay) | |
| ruby -w ./test/scanners/suite.rb nitro | |
| Loaded suite CodeRay::Scanners | |
| Started | |
| >> Testing Nitro XHTML scanner << | |
| Random test...java.lang.NoClassDefFoundError: Could not initialize class org.jruby.javasupport.JavaClass | |
| at org.jruby.javasupport.Java.getInstance(Java.java:354) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ time jruby -J-Djruby.debug.fullTrace=true -J-Djruby.jit.maxsize=1000000 -S rake test:scanner:nitro | |
| (in /Users/asari/Development/src/coderay) | |
| ruby -w ./test/scanners/suite.rb nitro | |
| Loaded suite CodeRay::Scanners | |
| Started | |
| >> Testing Nitro XHTML scanner << | |
| Random test...2010-04-22 23:49:33 | |
| Full thread dump Java HotSpot(TM) 64-Bit Server VM (14.3-b01-101 mixed mode): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class JRuby4680 { | |
| public static String foo1(Integer arg) { | |
| return "integer"; | |
| } | |
| public static String foo1(Float arg) { | |
| return "float"; | |
| } | |
| public static String foo2(Object o, Integer arg) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| irb(main):001:0> "a" =~ /?/ | |
| SyntaxError: compile error | |
| (irb):1: invalid regular expression; there's no previous pattern, to which '?' would define cardinality at 1: /?/ | |
| from (irb):1 | |
| from :0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| asari@ubuntu:~/Development/jruby$ ./bin/jruby test/test_thread_service.rb | |
| Loaded suite test/test_thread_service | |
| Started | |
| ... | |
| Finished in 6.137 seconds. | |
| 3 tests, 4 assertions, 0 failures, 0 errors | |
| asari@ubuntu:~/Development/jruby$ ./bin/jruby test/test_thread_service.rb | |
| Loaded suite test/test_thread_service | |
| Started |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [system]:ruby[git:master] $ ruby -rbigdecimal -rbigdecimal/math -e 'include BigMath;p x=sqrt(BigDecimal.new("2.0"), 50).to_s' | |
| "0.14142135623739504880168872429698078569671875376948073176679737975E1" | |
| [system]:ruby[git:master] $ ruby -rbigdecimal -rbigdecimal/math -e 'include BigMath;p x=sqrt(BigDecimal.new("2.0"), 50).inspect' | |
| "#<BigDecimal:1001469b8,'0.1414213562 3739504880 1688724296 9807856967 1875376948 0731766797 37975E1',72(72)>" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ ant test | |
| Buildfile: /Users/asari/Development/src/jruby/build.xml | |
| init: | |
| jar: | |
| init: | |
| extract-rdocs: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| run-junit-interpreted-short: | |
| [echo] compile=OFF, jit.threshold=20, jit.maxsize=1000000000, jit.max=-1, objectspace=true threadpool=false reflection=false version=ruby1_8 | |
| [junit] Testsuite: org.jruby.test.ScriptTestSuite | |
| [junit] Tests run: 73, Failures: 0, Errors: 0, Time elapsed: 20.904 sec | |
| [junit] | |
| [junit] Testsuite: org.jruby.test.JRubyTestSuite | |
| [junit] Tests run: 18, Failures: 1, Errors: 0, Time elapsed: 44.005 sec | |
| [junit] | |
| [junit] Testcase: test_command_line_switches(org.jruby.test.TestUnitTestSuite$ScriptTest): FAILED | |
| [junit] Faults encountered running test/test_command_line_switches, complete output follows: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| irb(main):002:0> x=java.lang.String | |
| => Java::JavaLang::String | |
| irb(main):003:0> x.ancestors | |
| => [Java::JavaLang::String, Java::JavaIo::Serializable, Java::JavaLang::Comparable, Comparable, Java::JavaLang::CharSequence, Java::JavaLang::Object, ConcreteJavaProxy, JavaProxy, JavaProxyMethods, Object, Kernel] |