Java client via Scala - StringBinIndex.Name not accessible

Luke Bakken lbakken at
Tue Dec 15 23:22:06 EST 2015

Hi Toby,

I think you're running into something similar to this:

which links to this:

Not being familar with Java / Scala interop I hope that the discussion
and further links there can help you out.

Luke Bakken
lbakken at

On Tue, Dec 15, 2015 at 8:11 PM, Toby Corkindale <toby at> wrote:
> Hi,
> I'm having a lot of trouble getting a particular part of the Riak java
> client to work when called from Scala.
> There's a Java class which I'm not allowed to instantiate directly, but must
> instead call an embedded subclass's static constructor method.
> ie.
> import com.basho.riak.client.core.query.indexes.StringBinIndex
> val idx = new StringBinIndex.Name("colours")
> However, in Scala, I get this error reported:
> Constructor Name in class Name cannot be accessed in class [myclass]
> Docs for the class:
> I don't suppose anyone can see what I'm doing wrong, or suggest how to make
> this work from Scala?
> Cheers,
> Toby
> _______________________________________________
> riak-users mailing list
> riak-users at

More information about the riak-users mailing list