Skip to content
This repository has been archived by the owner on Aug 26, 2021. It is now read-only.

Stag-java does not support Kotlin #99

Closed
simc opened this issue May 7, 2017 · 4 comments
Closed

Stag-java does not support Kotlin #99

simc opened this issue May 7, 2017 · 4 comments
Assignees

Comments

@simc
Copy link

simc commented May 7, 2017

Issue Summary

Kotlin makes all fields private and that raises the stag exception: Unable to access field "x" in class Y, field must not be private.

Expected Behavior

It would be nice if there was a workaround for Kotlin ;)

@anthonycr
Copy link
Contributor

anthonycr commented May 8, 2017

I believe this could be supported if stag supported setters and getters in addition to direct field access.

@anthonycr anthonycr self-assigned this May 9, 2017
@anthonycr
Copy link
Contributor

You can track work on this in this branch: https://github.com/vimeo/stag-java/commits/kotlin-support

Support will include:

  • Kotlin models will be able to use stag
  • Java models will be able to make their members private if they provide getters/setters

@anthonycr
Copy link
Contributor

PR is now open for this feature #104

@anthonycr
Copy link
Contributor

Fixed by the latest release https://github.com/vimeo/stag-java/releases/tag/v2.2.0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants