aws / aws-database-encryption-sdk-dynamodb

AWS Database Encryption SDK for DynamoDB in Java
Apache License 2.0
20 stars 11 forks source link

fix: Move Java helper methods out of extern class #1433

Open robin-aws opened 1 month ago

robin-aws commented 1 month ago

Description of changes:

I added these as a migration workaround for upgrading the Dafny version, but as a side effect this can make a class a mixed Dafny/native class when it wasn't intended to be, and this isn't supported on all target languages (e.g. Go). Easy fix to move them out of the class to the surrounding module instead.

Note that in this case InternalLegacyOverride was already a mixed class because of the policy constant, so a further refactoring will be necessary to support this in Go for e.g.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.