Details
-
New Feature
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
Patch Available
Description
Sometimes we do schema migrations and it would be cool to be able to have deprecation functionality from Thrift. At the most basic level, we should be able to annotate a field as deprecated and have the compiler generate "@Deprecated" annotations in the Java code.
Sometimes though, you may want creators of structs to be forced to use new fields, but you still want to be able to read the old fields until you have everything migrated over. In this case you could mark a field as "strong-deprecated" and just not generate any setters for those fields (only getters). This would force all users of the struct to migrate to new schema, since the code won't compile otherwise.
Attachments
Attachments
Issue Links
- depends upon
-
THRIFT-564 Annotations for struct fields
- Closed
- is related to
-
THRIFT-5781 implement full deprecation support
- Closed
- relates to
-
THRIFT-3461 Support Method Deprecation
- Closed