Closed terje7601 closed 10 years ago
You are correct, this is a mistake. Sadly I suspect it is too late to be fixed, but that is up to Oracle.
I'm a layman when it comes to the JCP, but: why can't this be fixed either way, since JSR-310 in itself is independent of Oracle & still in "Proposed Final Draft" status (i.e. hasn't had its "Final Release" yet)? Else, what is the use of having a "Proposed Final Draft" when the API & its RI are effectively already frozen because of the JDK 8 schedule? Moreover, it's still 2 months until the release, the method is only used in 2 classes (Duration & its test class TCKDuration) & Java 8 is really the only release this typo can be properly fixed. Anyway, I know it's not up to you to decide on this, so let's hope common sense will prevail here.
Only show stopper bugs are being accepted for JDK 8 currently. JSR 310 is not independent of Oracle due to its integration into SE 8. The SE 8 efforts are focused on stabilizing the tests on 3 platforms and it is a very large effort. A change made at this point involves updating the specification (easy), modifying the RI (pretty easy except for the 3 concurrent approval processes), modifying the tests (not too hard), migrating the modified tests to the (JCK) (a different group), since JSR 310 is integrated into SE 8 then the artifacts produced for SE 8 (javadoc/specs, etc) need to be redistributed and approved by the JSR 337 expert group. Common sense also includes making the conscious tradeoff of the value of the change and the costs. With the current spelling, the method will appear in the same place in javadoc and for IDE completion so it will have little/no impact on developers.
Thanks for putting things into perspective. I do realize SE 8 is a huge undertaking, but I assumed there would be shortcuts in the whole process to fix oversights like this (a typo in a public API).
Unfortunately, at this late stage it is very difficult to fix anything but the most severe issues.
In the Duration class, I believe "getNano" should be renamed to "getNanos" for consistency reasons.