Code review request: 7107522: sun/misc/Version/Version.java fails because of its huge build number

Weijun Wang weijun.wang at oracle.com
Wed Nov 2 11:46:26 UTC 2011


http://cr.openjdk.java.net/~weijun/7107522/webrev.00/

We must stay with the fact that a build number cannot exceed 255 while 
the system property "java.runtime.version" might show a bigger one. This 
fix only makes sure the test always passes.

If you think there should be a more proper mail list to send to, please 
tell me.

Thanks
Max

On 11/02/2011 07:41 PM, weijun.wang at oracle.com wrote:
> *Change Request ID*: 7107522
> *Synopsis*: sun/misc/Version/Version.java fails because of its huge build number
>
> === *Description* ============================================================
> sun/misc/Version/Version.java always fails for nightly tests, because the build number from Hudson is like b9123. A normal build number should be less than 256, as shown in jvm.h:
>
> #define JDK_VERSION_BUILD(version) ((version&  0x000000FF))



More information about the core-libs-dev mailing list