fields has private access in .kt class
See original GitHub issuePlease help us to fix issues asap: to reduce checking with you back and forth, use the template below. Replace italic sections with your input. For support questions, please use stackoverflow with the [objectbox] tag - we get notified.
Basics
- ObjectBox version (are using the latest version?): 1.0.0
- Reproducibility: [always]
Reproducing the bug
Description
@greenrobot I started using this but during build entities i have got below error from generated cursor.java class
Code
var addressLocationBox: ToOne<SNDBAddressLocationBox>? = null
collect313311(cursor, 0, 0, 0, null, 0, null, 0, null, 0, null, __ID_addressForeignKeyId, entity.addressForeignKey.getTargetId(), _ __ID_operationInQueue, entity.getOperationInQueue(), __ID_priority, entity.getPriority(), __ID_status, entity.getStatus(), 0, 0, 0, 0);
Logs & stackstraces
Error:(90, 50) error: addressLocationBox has private access in AddressBox
Entities
AddressBox.kt
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (5 by maintainers)
@sigfridod Thanks for reporting, will look into this very soon.
As a workaround, you should be able to make the Kotlin field visible using
@JvmField
:Does that help for now?
@bhuvaneshwariarkala This is also explained in more detail in the docs: https://docs.objectbox.io/relations -ut