RJB and Null: Fail: unknown method name

Hello,

I’m in trouble with the Ruby-Java-Bridge.

The Java code snippet is:
KEMListEditor subConceptListKEM = kemConcept.getSubConcepts(null, null,
Boolean.FALSE);

kemConcept.getSubConcepts has parameters:
KEMAbstractConceptEditor.getSubConcepts(String arg0, String arg1,
Boolean arg2)

I tried this in Ruby:
subConceptListKEM = @concept.getSubConcepts(nil, nil, false)

and this
subConceptListKEM =
@concept._invoke(‘getSubConcepts’,‘Ljava.lang.String;Ljava.lang.String;Ljava.lang.Boolean’,"","",
false)

The answer is always: “Fail: unknown method name”

I modified the call with:
@jBoolean = Rjb::import(‘java.lang.Boolean’)
[email protected](“false”)
subConceptListKEM = @concept.getSubConcepts(nil, nil, tFalse)

but it’s still the same error. I think it could be the “null”.

I replaced “nil” witch “” - same result.

Do you have any tip for me?

Greetings from Wolfram

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