--- old/modules/graphics/src/main/java/com/sun/javafx/font/PrismCompositeFontResource.java 2014-05-09 11:47:39.818039400 -0700 +++ new/modules/graphics/src/main/java/com/sun/javafx/font/PrismCompositeFontResource.java 2014-05-09 11:47:39.559014700 -0700 @@ -207,19 +207,11 @@ return false; } final PrismCompositeFontResource other = (PrismCompositeFontResource)obj; - - return primaryResource.getFullName().equals(other.getFullName()); + return primaryResource.equals(other.primaryResource); } - private int hash; @Override public int hashCode() { - if (hash != 0) { - return hash; - } - else { - hash = primaryResource.getFullName().hashCode(); - return hash; - } + return primaryResource.hashCode(); } } --- old/modules/graphics/src/main/java/com/sun/javafx/font/PrismFontFile.java 2014-05-09 11:47:41.945957200 -0700 +++ new/modules/graphics/src/main/java/com/sun/javafx/font/PrismFontFile.java 2014-05-09 11:47:41.686784800 -0700 @@ -1218,4 +1218,20 @@ return table; } + @Override + public boolean equals(Object obj) { + if (obj == null) { + return false; + } + if (!(obj instanceof PrismFontFile)) { + return false; + } + final PrismFontFile other = (PrismFontFile)obj; + return filename.equals(other.filename); + } + + @Override + public int hashCode() { + return filename.hashCode(); + } }