--- old/src/java.desktop/share/classes/sun/awt/SunGraphicsCallback.java 2018-11-28 16:23:30.000000000 -0800 +++ new/src/java.desktop/share/classes/sun/awt/SunGraphicsCallback.java 2018-11-28 16:23:29.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1999, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1999, 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 @@ -71,9 +71,6 @@ cg.setColor(comp.getForeground()); if (cg instanceof Graphics2D) { ((Graphics2D)cg).setBackground(comp.getBackground()); - } else if (cg instanceof Graphics2Delegate) { - ((Graphics2Delegate)cg).setBackground( - comp.getBackground()); } run(comp, cg); } finally {