Issue Type: Bug Bug
Affects Versions: JRuby 1.7.1
Assignee: Thomas E Enebo
Created: 12/Dec/12 5:17 PM
Description:

The following code:
monospaced
require 'java'
require './jersey-core-1.16.jar'

class Hello
def my_method
end
end

require 'jruby/core_ext'
Hello.add_parameter_annotation 'my_method', [javax.ws.rs.core.Context => {}]
monospaced

Causes this exception:

monospaced
ArgumentError: wrong number of arguments (3 for 4)
add_parameter_annotation at /Users/xavier/.rvm/rubies/jruby-1.7.0/lib/ruby/shared/jruby/core_ext/class.rb:143
each at org/jruby/RubyHash.java:1192
add_parameter_annotation at /Users/xavier/.rvm/rubies/jruby-1.7.0/lib/ruby/shared/jruby/core_ext/class.rb:141
each at org/jruby/RubyArray.java:1612
each_with_index at org/jruby/RubyEnumerable.java:946
add_parameter_annotation at /Users/xavier/.rvm/rubies/jruby-1.7.0/lib/ruby/shared/jruby/core_ext/class.rb:140
(root) at jruby_test.rb:10
monospaced

(Jersey core from http://jersey.java.net/nonav/documentation/latest/user-guide.html#chapter_deps)

Have confirmed on 1.7.0 and 1.7.1. The old `add_parameter_annotations` method available in the 1.6 branch works correctly.

Project: JRuby
Priority: Major Major
Reporter: Xavier Shay
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
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

Reply via email to