Skip to content

Instantly share code, notes, and snippets.

[INFO] compile-annotation-binder:
[INFO] [javac] Compiling 18 source files to /Volumes/v2/git/jruby/build/classes/jruby
[INFO] [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5
[INFO] [javac] /Volumes/v2/git/jruby/src/org/jruby/util/cli/Options.java:33: error: cannot find symbol
[INFO] [javac] import org.jruby.runtime.Constants;
[INFO] [javac] ^
[INFO] [javac] symbol: class Constants
[INFO] [javac] location: package org.jruby.runtime
[INFO] [javac] /Volumes/v2/git/jruby/src/org/jruby/util/cli/Options.java:53: error: cannot find symbol
[INFO] [javac] public static final Option<Integer> COMPILE_CHAINSIZE = integer(COMPILER, "compile.chainsize", Constants.CHAINED_COMPILE_LINE_COUNT_DEFAULT, "Set the number of lines at which compiled bodies are \"chained\".");
public class Process extends DynObject {
public Process() {
}
public void setTitle(String title) {
this.title = title;
}
public String getTitle() {
class A {
public Object foo;
public Object bar;
public Object get(String propertyName) {
// hashmap lookup for the rest of the properties
}
}
diff --git a/spec/mspec b/spec/mspec
index bc83305..8a0be99 160000
--- a/spec/mspec
+++ b/spec/mspec
@@ -1 +1 @@
-Subproject commit bc833057f7bf28e490e616a3bcef534b1e6bfb7c
+Subproject commit 8a0be99b4844a9f6dfc1eef7092901e6045e5222
diff --git a/src/org/jruby/compiler/impl/InvokeDynamicCacheCompiler.java b/src/org/jruby/compiler/impl/InvokeDynamicCacheCompiler.java
index b3d9c35..a4aa821 100644
--- a/src/org/jruby/compiler/impl/InvokeDynamicCacheCompiler.java
qmx@mirkwood /Volumes/v2/git/dynjs ±this_is_it⚡ » jruby -S irb
1.9.3-p125 :001 > require 'bigdecimal'
=> true
1.9.3-p125 :002 > BigDecimal.new(1.0)
TypeError: can't convert Float into String
from org/jruby/ext/bigdecimal/RubyBigDecimal.java:443:in `new'
from (irb):2:in `evaluate'
from org/jruby/RubyKernel.java:1037:in `eval'
from org/jruby/RubyKernel.java:1353:in `loop'
from org/jruby/RubyKernel.java:1146:in `catch'
=== ch15/15.11/15.11.3/S15.11.3.1_A3_T1 failed in non-strict mode ===
--- errors ---
Exception in thread "main" java.lang.NullPointerException
at org.dynjs.parser.statement.BlockStatement$1.<init>(BlockStatement.java:34)
at org.dynjs.parser.statement.BlockStatement.<init>(BlockStatement.java:32)
at org.dynjs.parser.Executor.block(Executor.java:46)
at org.dynjs.parser.ES3Walker.block(ES3Walker.java:885)
at org.dynjs.parser.ES3Walker.statement(ES3Walker.java:552)
at org.dynjs.parser.ES3Walker.ifStatement(ES3Walker.java:1053)
at org.dynjs.parser.ES3Walker.statement(ES3Walker.java:600)
1.9.3p125 :005 > require 'haml'
2012-04-18T12:08:22.872-03:00: LoadService: LoadService: trying builtinLib: haml.rb
2012-04-18T12:08:22.872-03:00: LoadService: LoadService: trying builtinLib: haml.class
2012-04-18T12:08:22.873-03:00: LoadService: LoadService: trying resourceFromLoadPath: '/Users/qmx/.rvm/gems/ruby-1.9.3-p125/gems/haml-3.1.4/lib/haml.rb' true true
2012-04-18T12:08:22.873-03:00: LoadService: LoadService: found: file:/Users/qmx/.rvm/gems/ruby-1.9.3-p125/gems/haml-3.1.4/lib/haml.rb
=> false
1.9.3p125 :006 >
package org.jboss.aerogear.controller;
import org.jboss.aerogear.controller.router.Routes;
import org.junit.Test;
import static org.jboss.aerogear.controller.RequestMethod.GET;
import static org.jboss.aerogear.controller.RequestMethod.POST;
public class RoutesTest {
# Option 1 or 2?
# 1
return @app.call(env) if @exclude && @exclude.call(env)
# 2
if @exclude && @exclude.call(env)
return @app.call(env)
end