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
| diff --git a/indy.patch b/indy.patch | |
| --- a/indy.patch | |
| +++ b/indy.patch | |
| @@ -1338,6 +1338,15 @@ | |
| import static sun.dyn.MemberName.newIllegalArgumentException; | |
| import static sun.dyn.MemberName.newNoAccessException; | |
| +@@ -223,7 +226,7 @@ | |
| + MethodHandle bindArgument(Access token, | |
| + MethodHandle target, int argnum, Object receiver) { |
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
| 2008 conferences: | |
| RubyConf, RailsConf, RailsConf EU, acts_as_conference, Euruko, Ruby Kaigi, Mountain West RubyConf, eRubyCon, Ruby Hoedown, Amsterdam Ruby en Rails, Scotland on Rails, RubyFools Copenhagen, RubyFools Oslo, Voices that Matter, South Carolina Ruby Conference, Lone Star RubyConf, RuPy, Gotham Ruby Conference, Silicon Valley Ruby Conference, RubyCamp, Conferencia Rails, Rails Summit Latin America, Ruby Manor, Atlanta Merb Day, ... | |
| 2008 books: | |
| NetBeans™ Ruby and Rails IDE with JRuby, Learning Rails, Rails for .NET Developers, Wicked Cool Ruby Scripts, JRuby Cookbook, Enterprise Recipes with Ruby and Rails, Developing Facebook Platform Applications with Rails, Foundation Rails 2, Enterprise Rails, Ruby On Rails Bible, Rails: Up and Running, Rails Pocket Reference, Ruby Phrasebook, Scripted GUI Testing with Ruby, Aptana RadRails, Advanced Rails Recipes, Deploying Rails Applications, The Art of Rails, Simply Rails 2, Practical REST on Rails 2 Projects, Ruby on Rails Web Mashup Projects, FXRuby: Cr |
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
| ~/projects/ruby2java ➔ javap -v RubyMain | |
| Compiled from "examples.ruby_main.rb" | |
| public class RubyMain extends org.jruby.RubyObject | |
| SourceFile: "examples/ruby_main.rb" | |
| minor version: 0 | |
| major version: 48 | |
| Constant pool: | |
| const #1 = Asciz RubyMain; | |
| const #2 = class #1; // RubyMain | |
| const #3 = Asciz org/jruby/RubyObject; |
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
| ~/projects/juby ➔ jruby -I../bitescript/lib src/compiler.rb -e "puts 1" | |
| ~/projects/juby ➔ javap -c dash_e | |
| Compiled from dash_e | |
| public class dash_e extends java.lang.Object{ | |
| public static void main(java.lang.String[]); | |
| Code: | |
| 0: aconst_null | |
| 1: ldc2_w #7; //long 1l | |
| 4: invokestatic #14; //Method java/lang/Long.valueOf:(J)Ljava/lang/Long; |
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
| require 'rubygems' | |
| require 'bitescript' | |
| require 'jruby' | |
| BiteScript.bytecode_version = BiteScript::JAVA1_7 | |
| class org::jruby::ast::ArrayNode | |
| def compile(compiler) | |
| if lightweight? | |
| child_nodes.each {|node| compiler.compile(node)} |
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
| ~/projects/juby ➔ JAVA_HOME=../davinci/sources/build/bsd-i586/j2sdk-image/ JAVA_OPTS=-XX:+EnableInvokeDynamic CLASSPATH=src jruby -I ../bitescript/lib/ src/compiler.rb -e "puts 1.compareTo 2" | |
| ~/projects/juby ➔ ../davinci/sources/build/bsd-i586/j2sdk-image/bin/javap -c dash_eCompiled from "dash_e" | |
| public class dash_e extends java.lang.Object { | |
| public static void main(java.lang.String[]); | |
| Code: | |
| 0: ldc2_w #7; //long 1l | |
| 3: invokestatic #14; //Method java/lang/Long.valueOf:(J)Ljava/lang/Long; | |
| 6: ldc2_w #15; //long 2l | |
| 9: invokestatic #14; //Method java/lang/Long.valueOf:(J)Ljava/lang/Long; |
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
| ~/projects/jruby ➔ ast -e "a = 2; a += 1; foo {|a,b| puts a,b}" | |
| RootNode 0 | |
| BlockNode 0 | |
| NewlineNode 0 | |
| LocalAsgnNode:a 0 | |
| FixnumNode 0 | |
| NewlineNode 0 | |
| LocalAsgnNode:a 0 | |
| CallOneArgNode:+ 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
| ~/projects/jruby ➔ jruby -J-Djruby.backtrace.style=raw -e "def foo; bar; end; def bar; 1.times { baz }; end; def baz; quux; rescue; raise; end; def quux; raise; end; foo" | |
| Thread.java:1460:in `getStackTrace': unhandled exception | |
| from RubyException.java:139:in `setBacktraceFrames' | |
| from RaiseException.java:160:in `setException' | |
| from RaiseException.java:72:in `<init>' | |
| from RubyKernel.java:841:in `raise' | |
| from org/jruby/RubyKernel$s_method_0_3$RUBYFRAMEDINVOKER$raise.gen:-1:in `call' | |
| from DynamicMethod.java:160:in `call' | |
| from DynamicMethod.java:156:in `call' | |
| from CachingCallSite.java:258:in `cacheAndCall' |
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
| New cleaned up trace (pass -d if you want the full version): | |
| ~/projects/jruby ➔ jruby -rjava -e "def foo; java.lang.System.set_property nil, nil; end; foo" | |
| java/lang/System.java:790:in `checkKey': java.lang.NullPointerException: key can't be null (NativeException) | |
| from java/lang/System.java:741:in `setProperty' | |
| from -e:1:in `foo' | |
| from -e:1 | |
| Old longer trace: |
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
| diff --git a/src/org/jruby/RubyEncoding.java b/src/org/jruby/RubyEncoding.java | |
| index 611c61c..c44bc46 100644 | |
| --- a/src/org/jruby/RubyEncoding.java | |
| +++ b/src/org/jruby/RubyEncoding.java | |
| @@ -286,8 +286,11 @@ public class RubyEncoding extends RubyObject { | |
| return convertEncodingToRubyEncoding(runtime, runtime.getDefaultExternalEncoding()); | |
| } | |
| - @JRubyMethod(name = "default_external=", required = 1, meta = true, compat = CompatVersion.RUBY1_9) | |
| + @JRubyMethod(name = "default_external=", required = 1, frame = true, meta = true, compat = CompatVersion.RUBY1_9) |