How to implement a JSR Specification

匆匆过客 提交于 2019-12-04 03:51:21

What you may need to do, is to contact the spec lead for the given JSR. They can give you more information on obtaining a TCK.

It may be that you have to pay a license to obtain access to the TCK. Certainly with the Java SE specification, Sun does indeed charge a license fee for the TCK, unless you qualify as a non-profit organization to receive it for free.

That said, I believe it varies from JSR to JSR, so as I said above, the best bet is to contact the JSR spec lead.

Wow, this is a very ambitious project, usually taken over by companies or big open source teams. If you are determined enough to do it, I recommend that you have a look at some open source implementations. The mentioned JSRs are implemented by Pluto. It may worth to have a look at the source distribution.

Apologies in davance for the worst case scenario I'm going to present.

From having done this quite a few times before, I strongly advise not writing a single line of code before you have read not only the spec but any kind of e-mail archive from the JSR expert group.

JSR specifications are usually full of ambiguity and can be interpreted in a number of different ways. Going through it in a very methodical way will let you ask relevant questions to the expert group soon enough before it disbands and becomes unresponsive, hopefully.

The TCK is typically a set of tests that does not ensure your implementation even remotely works, it just says you are a legal implementation of the specifications.

TCKs are typically too expensive for a single individual to buy.

Obivously, the way to implement the JSR will depend on what operating system and what virtual machine you are targetting. The nicer JSRs are usually the ones that can be implemented in pure Java.

Good luck!

Why do you want to implement a spec if there is already a working implementation ? Seems like a lot of needless work for little benefit...

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