Scala Backward Compatibility

久未见 提交于 2019-12-04 13:58:01

问题


What changes or code evolution break backward compatibility (mainly binary compatibility)? Is it fully specified anywhere?

I checked the Scala language specification, but didn't see any section on the matter like Java Language Specification Ch. 13 Binary Compatibility.


回答1:


According to the mailing list, the spec documenting detailing backward compatibility issues does not yet exist but is in the works.

For current status and oulook of binary compatibility (mainly of the scala library), see Martin's message to scala-user mailing list.

For a migration manager preview, see this page http://typesafe.com/technology/migration-manager.




回答2:


I've added support for Scala to the japi-compliance-checker tool (1.6 version). So now you can identify breaking changes in your code automatically. The tool is available here: https://github.com/lvc/japi-compliance-checker

Sample usage:

japi-compliance-checker OLD.jar NEW.jar

Also I've created a page with analysis reports for Scala versions evolution generated by this tool as an example: http://abi-laboratory.pro/java/tracker/timeline/scala/



来源:https://stackoverflow.com/questions/6244103/scala-backward-compatibility

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!