Jruby class implementing an interface not matching method paramater signature

I am implementing an interface from lucene here¹s the code:
class Distance
include org.apache.lucene.search.SortComparatorSource
#methods from the interface implemented here…
end
I am passing the instance of this to a method, but its complaining
that :
NameError: no search with arguments matching [class
org.apache.lucene.search.BooleanQuery, class org.jruby.RubyNil, class
org.jruby.RubyFixnum, class org.jruby.RubyObject] on object
#<Java::OrgApacheLuceneSearch::IndexSearcher:0x1e229be
@[email protected]>

4th argument is the instance of class Distance. I know its the 4th
argument
that its not matching since I tried passing java instance which
implements
SortComparatorSource and it succeeded.

Thank you,
Krishna.

Krishna K. wrote:

org.jruby.RubyFixnum, class org.jruby.RubyObject] on object
#<Java::OrgApacheLuceneSearch::IndexSearcher:0x1e229be
@[email protected]>

4th argument is the instance of class Distance. I know its the 4th
argument that its not matching since I tried passing java instance which
implements SortComparatorSource and it succeeded.

Check against 1.1.6RC1…if it’s still broken, file a bug please :slight_smile:

  • Charlie

To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Oops! My bad. I was looking at the older lucene documentation and using
the
newer API. :slight_smile:

On 12/4/08 3:14 PM, “Charles Oliver N.” [email protected]
wrote:

org.apache.lucene.search.BooleanQuery, class org.jruby.RubyNil, class

  • Charlie

To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs