7183251: Netbeans editor renders text wrong on JDK 7u6 build 17
Reviewed-by: igor, jgodinez
--- a/jdk/src/share/classes/sun/font/SunLayoutEngine.java Mon Jul 16 16:49:29 2012 -0700
+++ b/jdk/src/share/classes/sun/font/SunLayoutEngine.java Tue Jul 17 16:35:49 2012 -0700
@@ -137,8 +137,9 @@
LayoutEngine e = (LayoutEngine)cache.get(key);
if (e == null) {
- e = new SunLayoutEngine(key.copy());
- cache.put(key, e);
+ LayoutEngineKey copy = key.copy();
+ e = new SunLayoutEngine(copy);
+ cache.put(copy, e);
}
return e;
}