如何实现JSR规范 [英] How to implement a JSR Specification

查看:339
本文介绍了如何实现JSR规范的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在考虑实现一个或两个JSR API.我尚未阅读整个规范(计划是在编写实现代码时阅读它们),但我对它们非常熟悉.我已经读到JSR流程包括实现用于测试所述JSR实现的测试兼容性套件(TCK).

I'm considering implementing one or two JSR APIs. I have not yet read the entire specification (the plan is to read them as I code the implementation) but I am very familiar with them. I have read that the JSR process includes implementing a Test Compatibility Kit (TCK) for testing said JSR implementations.

在我开始编写大量的单元测试以验证实现的正确性/完整性之前,我真的很想使用此TCK,但是我不知道它是否适用于我.下载完所有文件并四处搜索之后,找不到任何可以定义为给定JSR的TCK的内容.

Before I start writing a bunch of unit tests to verify the correctness/completeness of my implementation I would really like to use this TCK but I have no idea if it is available for me. After downloading all files and googling around I could not find anything that could be defined as a TCK for the given JSR.

所以我的问题基本上是:为了生成自己的JSR规范实现,我需要执行哪些步骤,以及如何验证自己确实已这样做.

So my question is basically: What steps do I need to do in order to produce my own implementation of a JSR spec and how do I verify that I have indeed done so.

对于它的价值,我正在考虑实现JSR-168和JSR-286,但是我认为这与这个问题无关.

For what it's worth, I am considering implementing JSR-168 and JSR-286, but I think that is not relevant for this question.

推荐答案

您可能需要做的是联系给定JSR的规范负责人.他们可以为您提供有关获取TCK的更多信息.

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.

可能是您必须支付许可证才能访问TCK.当然,按照Java SE规范,Sun确实会向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.

也就是说,我相信每个JSR都有所不同,因此,如上所述,最好的办法是与JSR规范负责人联系.

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.

这篇关于如何实现JSR规范的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆