[jruby-dev] [jira] Created: (JRUBY-5300) Heredocs do not appear to propagate file encoding
Heredocs do not appear to propagate file encoding - Key: JRUBY-5300 URL: http://jira.codehaus.org/browse/JRUBY-5300 Project: JRuby Issue Type: Bug Components: Parser Reporter: Charles Oliver Nutter Assignee: Charles Oliver Nutter Fix For: JRuby 1.6 Recent parser work exposed this problem. Heredocs within an encoded file do not appear to propagate the encoding. File: {noformat} # encoding: utf-8 x =
[jruby-dev] [jira] Created: (JRUBY-5301) [1.9] Unicode characters in regexp in unicode-encoded file do not parse
[1.9] Unicode characters in regexp in unicode-encoded file do not parse --- Key: JRUBY-5301 URL: http://jira.codehaus.org/browse/JRUBY-5301 Project: JRuby Issue Type: Bug Components: Parser, Ruby 1.9 Reporter: Charles Oliver Nutter Assignee: Thomas E Enebo Fix For: JRuby 1.6 File: {noformat} # encoding: utf-8 /こ/u {noformat} Error: {noformat} ~/projects/rails/activesupport ➔ jruby --1.9 -c multibyte_chars_test.rb org.jruby.exceptions.RaiseException: (RegexpError) invalid multibyte character: /ãã““/ ~/projects/rails/activesupport ➔ jruby -Xbacktrace.style=raw --1.9 -c multibyte_chars_test.rb org.jruby.exceptions.RaiseException: (RegexpError) invalid multibyte character: /ãã““/ at java.lang.Thread.getStackTrace(Thread.java:1503) at org.jruby.RubyException.prepareBacktrace(RubyException.java:154) at org.jruby.exceptions.RaiseException.preRaise(RaiseException.java:156) at org.jruby.Ruby.newRaiseException(Ruby.java:3405) at org.jruby.Ruby.newRegexpError(Ruby.java:3238) at org.jruby.RubyRegexp.raiseRegexpError19(RubyRegexp.java:1017) at org.jruby.RubyRegexp.raisePreprocessError(RubyRegexp.java:431) at org.jruby.RubyRegexp.unescapeNonAscii(RubyRegexp.java:601) at org.jruby.RubyRegexp.preprocess(RubyRegexp.java:671) at org.jruby.RubyRegexp.preprocessCheck(RubyRegexp.java:678) at org.jruby.parser.ParserSupport.regexpFragmentCheck(ParserSupport.java:1617) at org.jruby.parser.ParserSupport.newRegexpNode(ParserSupport.java:1630) at org.jruby.parser.Ruby19Parser$295.execute(Ruby19Parser.java:3575) at org.jruby.parser.Ruby19Parser.yyparse(Ruby19Parser.java:1477) at org.jruby.parser.Ruby19Parser.yyparse(Ruby19Parser.java:1368) at org.jruby.parser.Ruby19Parser.parse(Ruby19Parser.java:4237) at org.jruby.parser.Parser.parse(Parser.java:112) at org.jruby.parser.Parser.parse(Parser.java:94) at org.jruby.Ruby.parseFile(Ruby.java:2290) at org.jruby.Ruby.parseFile(Ruby.java:2295) at org.jruby.Ruby.parseFromMain(Ruby.java:444) at org.jruby.Main.run(Main.java:255) at org.jruby.Main.run(Main.java:144) at org.jruby.Main.main(Main.java:113) {noformat} -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
[jruby-dev] [jira] Created: (JRUBY-5302) [1.9] Rails Object#to_param appears to lose values for a Hash
[1.9] Rails Object#to_param appears to lose values for a Hash - Key: JRUBY-5302 URL: http://jira.codehaus.org/browse/JRUBY-5302 Project: JRuby Issue Type: Bug Components: Core Classes/Modules, Ruby 1.9 Reporter: Charles Oliver Nutter Assignee: Charles Oliver Nutter Fix For: JRuby 1.6 Example (this should produce "10=20"): {noformat} ~/projects/rails/activesupport ➔ jruby --1.9 -w -Ilib:test -ractive_support/core_ext/object/conversions -e "p({10 => 20}.to_param)" "10=" {noformat} -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
[jruby-dev] [jira] Created: (JRUBY-5303) [1.9] Wrong parameters parse for method signatures with default values
[1.9] Wrong parameters parse for method signatures with default values -- Key: JRUBY-5303 URL: http://jira.codehaus.org/browse/JRUBY-5303 Project: JRuby Issue Type: Bug Components: Parser, Ruby 1.9 Reporter: David Calavera Assignee: Thomas E Enebo The new method signature causes MiniTest doesn't handle default arguments properly. I've reduced the issue to this code: {code} require 'minitest/unit' module Foo include MiniTest::Assertions def assert(test, msg = (nomsg = true; nil)) super end end include Foo assert 'foo' == '', 'expected blank' {code} The expected output is: {code} `assert': expected blank (MiniTest::Assertion) {code} but I get the MiniTest default message: {code} `assert': Failed assertion, no message given. (MiniTest::Assertion) {code} The signature of the assert above is the same that TestUnit has for Ruby 1.9 and that causes ActiveSupport tests fail: https://github.com/jruby/jruby/blob/master/lib/ruby/1.9/test/unit/assertions.rb#L13 If I remove the "nomsg = true" parameter it works fine. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
[jruby-dev] [jira] Created: (JRUBY-5304) [1.9] Module.const_defined? and Module.const_get accept a second parameter to look up into the ancestors
[1.9] Module.const_defined? and Module.const_get accept a second parameter to look up into the ancestors Key: JRUBY-5304 URL: http://jira.codehaus.org/browse/JRUBY-5304 Project: JRuby Issue Type: Bug Components: Core Classes/Modules, Ruby 1.9 Affects Versions: JRuby 1.5.6 Reporter: David Calavera Assignee: David Calavera from ruby code {noformat} -- mod.const_defined?(sym, inherit=true) -> true or false -- Returns true if a constant with the given name is defined by mod, or its ancestors if inherit is not false. Math.const_defined? "PI" #=> true IO.const_defined? "SYNC" #=> true IO.const_defined? "SYNC", false #=> false -- mod.const_get(sym, inherit=true)-> obj -- Returns the value of the named constant in mod. Math.const_get(:PI) #=> 3.14159265358979 If the constant is not defined or is defined by the ancestors and inherit is false, NameError will be raised. {noformat} This cause some ActiveResource tests fail. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email