From the docs I understands that since writes are not allowed in RO transactions, the jdbc driver thinks it is connected to a slave. I think the master/slave check should be corrected, or configurable.
Docs:
The master/slave distinction is currently done by observing if the server allows writes