Skip to content

Conversation

@daniilguit
Copy link

@daniilguit daniilguit commented Aug 29, 2017

Currently, for primitive types (such as int, long, etc) generated getters and setters return and accept java.lang.* boxed (while fields actually holds primitive values). This is inefeccient and produces code boilerplate.

The only issue with this approach that it breaks source compatibility with previously generated code.

Daniil Guitelson and others added 4 commits August 29, 2017 12:13
…a code

Fix broken unit tests in TestSpecificCompilerTool
Sync up with origin repository
…a code

Fix broken unit tests in TestSpecificCompilerTool after migrating to org.junit.Test
Copy link
Contributor

@busbey busbey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's get this in for 1.9. if desired we can have a follow-on to make a backwards compatible version for 1.7/1.8 folks.

@scottcarey
Copy link
Contributor

This can be an option at generation time for those that don't want to break compatibility (defaulting to the old way prior to 1.9).

@iemejia iemejia added the Java Pull Requests for Java binding label Nov 29, 2018
@dkulp dkulp closed this in e65411f Dec 10, 2018
@samsafadi
Copy link

This can be an option at generation time for those that don't want to break compatibility (defaulting to the old way prior to 1.9).

Was this option ever implemented? This change causes a lot of compatibility issues when upgrading from 1.8.2. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Java Pull Requests for Java binding

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants