Get string representation of javadsl Content and Media Type - #630
Conversation
bb3e7b4 to
125cc72
Compare
125cc72 to
e810ad7
Compare
I would wait for 1.2.x, there is a workaround and since we are adding methods to an interface we should be bumping the minor version |
|
|
We should probably edit |
Done |
e810ad7 to
1046b5d
Compare
1046b5d to
6e2888c
Compare
|
@pjfanning Can you re-review this PR given @raboof 's comments? |
The changes look ok. We still need to block the merge until we have the 1.1.x branch and related CI builds. |
I think I missed why we'd want to delay this merge - this PR as it now stands seems like a regular backwards-compatible change (assuming nobody inherited from |
The PR currently has |
Aah, gotcha. This begs the question whether those |
I guess we can discuss the philosophies around using since annotations on the mailing list - I would strongly argue that we can't change the established approach in a patch release. |
OK, I can start that thread.
OK. AFAICS the 1.1.x branch has already been created, meaning the |
So actually, the reason for putting it in 1.2.0 is that while its not a breaking compatible change it is a forwards breaking change (hence the MiMa changes) which is allowed by semver in minor version bumps and not patch (its only backwards compatibility thats disallowed, this has to be done in a major patch update). |
pjfanning
left a comment
There was a problem hiding this comment.
approved for main branch merge - now that main branch is repurposed for v1.2 dev
|
Thanks, I will go ahead and merge it. |
Currently in the javadsl its not possible to get the string representation of the
Content-Type/Media-Typebecause its only the scaladsl that implements thevaluefunction (via theValueRenderabletrait). This PR adds thevaluemethod to the core Java interfaces (therendermethod is anyways implemented in the subclasses hence why this PR is compiling without any additional changes)As a workaround I currently have to do this (its in kotlin but should be understandable)
This works because it just so happens that every javdsl
ContentTypeis also a scaladslContentType