--- old/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicLabelUI.java 2018-06-17 00:33:13.000000000 -0700 +++ new/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicLabelUI.java 2018-06-17 00:33:13.000000000 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -472,8 +472,8 @@ public void propertyChange(PropertyChangeEvent e) { String name = e.getPropertyName(); - if (name == "text" || "font" == name || "foreground" == name || - "ancestor" == name || "graphicsConfiguration" == name) { + if (name == "text" || "font" == name || "foreground" == name + || "graphicsConfiguration" == name) { // remove the old html view client property if one // existed, and install a new one if the text installed // into the JLabel is html source.