-
Bug
-
Resolution: Duplicate
-
P2
-
None
-
8
$ cat SerialComparator.java
class SerialComparator implements java.util.Comparator,java.io.Serializable {
public int compare(Object o1,Object o2) {
return 7;
}
public boolean equals(Object o) {
return true;
}
}
$ /set/java/re/jdk/7/promoted/fcs/b147/binaries/solaris-sparc/bin/javac -g:none SerialComparator.java
$ /set/java/re/jdk/7/promoted/fcs/b147/binaries/solaris-sparc/bin/serialver SerialComparator
SerialComparator: static final long serialVersionUID = 2879724379937955927L;
$ /set/java/re/jdk/8/promoted/ea/b81/binaries/solaris-sparc/bin/serialver SerialComparator
SerialComparator: static final long serialVersionUID = 2879724379937955927L;
$ /set/java/re/jdk/8/promoted/ea/b82/binaries/solaris-sparc/bin/serialver SerialComparator
SerialComparator: static final long serialVersionUID = -2781454083125382737L;
class SerialComparator implements java.util.Comparator,java.io.Serializable {
public int compare(Object o1,Object o2) {
return 7;
}
public boolean equals(Object o) {
return true;
}
}
$ /set/java/re/jdk/7/promoted/fcs/b147/binaries/solaris-sparc/bin/javac -g:none SerialComparator.java
$ /set/java/re/jdk/7/promoted/fcs/b147/binaries/solaris-sparc/bin/serialver SerialComparator
SerialComparator: static final long serialVersionUID = 2879724379937955927L;
$ /set/java/re/jdk/8/promoted/ea/b81/binaries/solaris-sparc/bin/serialver SerialComparator
SerialComparator: static final long serialVersionUID = 2879724379937955927L;
$ /set/java/re/jdk/8/promoted/ea/b82/binaries/solaris-sparc/bin/serialver SerialComparator
SerialComparator: static final long serialVersionUID = -2781454083125382737L;
- duplicates
-
JDK-8010017 lambda: reflection get(Declared)Methods support for concrete methods in interfaces
- Closed