--- old/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicToolTipUI.java 2018-06-14 19:00:03.000000000 -0700 +++ new/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicToolTipUI.java 2018-06-14 19:00:02.000000000 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2014, 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 @@ -260,9 +260,9 @@ PropertyChangeListener { public void propertyChange(PropertyChangeEvent e) { String name = e.getPropertyName(); - if (name.equals("tiptext") || "font".equals(name) || - "foreground".equals(name) || - "ancestor" == name || "graphicsConfiguration" == name) { + if (name.equals("tiptext") || "foreground".equals(name) + || "font".equals(name) + || "graphicsConfiguration".equals(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.