jdk/test/javax/swing/JTable/6735286/bug6735286.java
author vromero
Thu, 05 Jan 2017 11:16:39 -0800
changeset 43033 c37b643739a7
parent 7011 f290783add29
permissions -rw-r--r--
8148100: Convert lambda most specific positive tests to check runtime behavior Reviewed-by: mcimadamore Contributed-by: bsrbnd@gmail.com
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7011
f290783add29 6735286: javax.swing.DefaultTableCellRender.getTableCellRendererComponent() doesn't allow passing null Tables
rupashka
parents:
diff changeset
     1
/*
f290783add29 6735286: javax.swing.DefaultTableCellRender.getTableCellRendererComponent() doesn't allow passing null Tables
rupashka
parents:
diff changeset
     2
 * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
f290783add29 6735286: javax.swing.DefaultTableCellRender.getTableCellRendererComponent() doesn't allow passing null Tables
rupashka
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
f290783add29 6735286: javax.swing.DefaultTableCellRender.getTableCellRendererComponent() doesn't allow passing null Tables
rupashka
parents:
diff changeset
     4
 *
f290783add29 6735286: javax.swing.DefaultTableCellRender.getTableCellRendererComponent() doesn't allow passing null Tables
rupashka
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
f290783add29 6735286: javax.swing.DefaultTableCellRender.getTableCellRendererComponent() doesn't allow passing null Tables
rupashka
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
f290783add29 6735286: javax.swing.DefaultTableCellRender.getTableCellRendererComponent() doesn't allow passing null Tables
rupashka
parents:
diff changeset
     7
 * published by the Free Software Foundation.
f290783add29 6735286: javax.swing.DefaultTableCellRender.getTableCellRendererComponent() doesn't allow passing null Tables
rupashka
parents:
diff changeset
     8
 *
f290783add29 6735286: javax.swing.DefaultTableCellRender.getTableCellRendererComponent() doesn't allow passing null Tables
rupashka
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
f290783add29 6735286: javax.swing.DefaultTableCellRender.getTableCellRendererComponent() doesn't allow passing null Tables
rupashka
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
f290783add29 6735286: javax.swing.DefaultTableCellRender.getTableCellRendererComponent() doesn't allow passing null Tables
rupashka
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
f290783add29 6735286: javax.swing.DefaultTableCellRender.getTableCellRendererComponent() doesn't allow passing null Tables
rupashka
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
f290783add29 6735286: javax.swing.DefaultTableCellRender.getTableCellRendererComponent() doesn't allow passing null Tables
rupashka
parents:
diff changeset
    13
 * accompanied this code).
f290783add29 6735286: javax.swing.DefaultTableCellRender.getTableCellRendererComponent() doesn't allow passing null Tables
rupashka
parents:
diff changeset
    14
 *
f290783add29 6735286: javax.swing.DefaultTableCellRender.getTableCellRendererComponent() doesn't allow passing null Tables
rupashka
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
f290783add29 6735286: javax.swing.DefaultTableCellRender.getTableCellRendererComponent() doesn't allow passing null Tables
rupashka
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
f290783add29 6735286: javax.swing.DefaultTableCellRender.getTableCellRendererComponent() doesn't allow passing null Tables
rupashka
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
f290783add29 6735286: javax.swing.DefaultTableCellRender.getTableCellRendererComponent() doesn't allow passing null Tables
rupashka
parents:
diff changeset
    18
 *
f290783add29 6735286: javax.swing.DefaultTableCellRender.getTableCellRendererComponent() doesn't allow passing null Tables
rupashka
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f290783add29 6735286: javax.swing.DefaultTableCellRender.getTableCellRendererComponent() doesn't allow passing null Tables
rupashka
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
f290783add29 6735286: javax.swing.DefaultTableCellRender.getTableCellRendererComponent() doesn't allow passing null Tables
rupashka
parents:
diff changeset
    21
 * questions.
f290783add29 6735286: javax.swing.DefaultTableCellRender.getTableCellRendererComponent() doesn't allow passing null Tables
rupashka
parents:
diff changeset
    22
 */
f290783add29 6735286: javax.swing.DefaultTableCellRender.getTableCellRendererComponent() doesn't allow passing null Tables
rupashka
parents:
diff changeset
    23
f290783add29 6735286: javax.swing.DefaultTableCellRender.getTableCellRendererComponent() doesn't allow passing null Tables
rupashka
parents:
diff changeset
    24
/* @test
f290783add29 6735286: javax.swing.DefaultTableCellRender.getTableCellRendererComponent() doesn't allow passing null Tables
rupashka
parents:
diff changeset
    25
   @bug 6735286
f290783add29 6735286: javax.swing.DefaultTableCellRender.getTableCellRendererComponent() doesn't allow passing null Tables
rupashka
parents:
diff changeset
    26
   @summary javax.swing.DefaultTableCellRender.getTableCellRendererComponent() doesn't allow passing null Tables
f290783add29 6735286: javax.swing.DefaultTableCellRender.getTableCellRendererComponent() doesn't allow passing null Tables
rupashka
parents:
diff changeset
    27
   @author Pavel Porvatov
f290783add29 6735286: javax.swing.DefaultTableCellRender.getTableCellRendererComponent() doesn't allow passing null Tables
rupashka
parents:
diff changeset
    28
*/
f290783add29 6735286: javax.swing.DefaultTableCellRender.getTableCellRendererComponent() doesn't allow passing null Tables
rupashka
parents:
diff changeset
    29
f290783add29 6735286: javax.swing.DefaultTableCellRender.getTableCellRendererComponent() doesn't allow passing null Tables
rupashka
parents:
diff changeset
    30
import javax.swing.*;
f290783add29 6735286: javax.swing.DefaultTableCellRender.getTableCellRendererComponent() doesn't allow passing null Tables
rupashka
parents:
diff changeset
    31
f290783add29 6735286: javax.swing.DefaultTableCellRender.getTableCellRendererComponent() doesn't allow passing null Tables
rupashka
parents:
diff changeset
    32
public class bug6735286 {
f290783add29 6735286: javax.swing.DefaultTableCellRender.getTableCellRendererComponent() doesn't allow passing null Tables
rupashka
parents:
diff changeset
    33
    public static void main(String[] args) {
f290783add29 6735286: javax.swing.DefaultTableCellRender.getTableCellRendererComponent() doesn't allow passing null Tables
rupashka
parents:
diff changeset
    34
        SwingUtilities.invokeLater(new Runnable() {
f290783add29 6735286: javax.swing.DefaultTableCellRender.getTableCellRendererComponent() doesn't allow passing null Tables
rupashka
parents:
diff changeset
    35
            public void run() {
f290783add29 6735286: javax.swing.DefaultTableCellRender.getTableCellRendererComponent() doesn't allow passing null Tables
rupashka
parents:
diff changeset
    36
                new JTable().getDefaultRenderer(Object.class).getTableCellRendererComponent(null, "a value",
f290783add29 6735286: javax.swing.DefaultTableCellRender.getTableCellRendererComponent() doesn't allow passing null Tables
rupashka
parents:
diff changeset
    37
                        true, true, 0, 0);
f290783add29 6735286: javax.swing.DefaultTableCellRender.getTableCellRendererComponent() doesn't allow passing null Tables
rupashka
parents:
diff changeset
    38
f290783add29 6735286: javax.swing.DefaultTableCellRender.getTableCellRendererComponent() doesn't allow passing null Tables
rupashka
parents:
diff changeset
    39
            }
f290783add29 6735286: javax.swing.DefaultTableCellRender.getTableCellRendererComponent() doesn't allow passing null Tables
rupashka
parents:
diff changeset
    40
        });
f290783add29 6735286: javax.swing.DefaultTableCellRender.getTableCellRendererComponent() doesn't allow passing null Tables
rupashka
parents:
diff changeset
    41
    }
f290783add29 6735286: javax.swing.DefaultTableCellRender.getTableCellRendererComponent() doesn't allow passing null Tables
rupashka
parents:
diff changeset
    42
}