Build Failure
Stephen Chin
stephen.chin at oracle.com
Tue May 19 02:05:12 UTC 2015
FYI, the build is not compiling currently due to a bad check-in:
http://hg.openjdk.java.net/dio/dev/rev/0dc7ae392a2e <http://hg.openjdk.java.net/dio/dev/rev/0dc7ae392a2e>
The problem is in Platform.java:
@@ -60,9 +65,82 @@
if (null == obj1 || null == obj2) {
return false;
}
- if (obj1.getClass() != obj2.getClass()) {
- return false;
+
+ try {
+ serialize(obj1).equals(serialize(obj2));
+ } catch (IOException e) {
+ return Objects.equals(obj1, obj2);
}
- return Objects.equals(obj1, obj2);
}
I assume that it was intended the line inside the try block has a return preceding it...
So this is an easy fix, but what is the recommended advice for early adopters who want to use the Device I/O API in the community? It doesn't look like there are any safe tags, branches, or any nightly builds.
Cheers,
Stephen Chin (@steveonjava <http://twitter.com/steveonjava>) | Java Community Manager and JavaOne Content Co-Chair | +1.510.323.6097
Oracle Technology Network
http://steveonjava.com/ <http://steveonjava.com/>
<http://nighthacking.com/>
<http://nighthacking.com/>
More information about the dio-dev
mailing list