如何实现JSR规范

编程入门 行业动态 更新时间:2024-10-25 21:30:59
本文介绍了如何实现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规范

本文发布于:2023-11-23 09:04:23,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1620868.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何实现   JSR

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!