langtools/test/tools/javac/T4881267.java
author jlahoda
Tue, 17 Dec 2013 10:55:59 +0100
changeset 22153 f9f06fcca59d
parent 20251 90a73be53aa0
permissions -rw-r--r--
8029800: Flags.java uses String.toLowerCase without specifying Locale Summary: Introducing StringUtils.toLowerCase/toUpperCase independent on the default locale, converting almost all usages of String.toLowerCase/toUpperCase to use the new methods. Reviewed-by: jjg, bpatel
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
20251
90a73be53aa0 4881267: improve diagnostic for "instanceof T" for type parameter T
kizune
parents:
diff changeset
     1
/*
90a73be53aa0 4881267: improve diagnostic for "instanceof T" for type parameter T
kizune
parents:
diff changeset
     2
 * @test /nodynamiccopyright/
90a73be53aa0 4881267: improve diagnostic for "instanceof T" for type parameter T
kizune
parents:
diff changeset
     3
 * @bug 4881267
90a73be53aa0 4881267: improve diagnostic for "instanceof T" for type parameter T
kizune
parents:
diff changeset
     4
 * @summary improve diagnostic for "instanceof T" for type parameter T
90a73be53aa0 4881267: improve diagnostic for "instanceof T" for type parameter T
kizune
parents:
diff changeset
     5
 * @compile/fail/ref=T4881267.out -XDrawDiagnostics T4881267.java
90a73be53aa0 4881267: improve diagnostic for "instanceof T" for type parameter T
kizune
parents:
diff changeset
     6
 */
90a73be53aa0 4881267: improve diagnostic for "instanceof T" for type parameter T
kizune
parents:
diff changeset
     7
90a73be53aa0 4881267: improve diagnostic for "instanceof T" for type parameter T
kizune
parents:
diff changeset
     8
class T4881267 {
90a73be53aa0 4881267: improve diagnostic for "instanceof T" for type parameter T
kizune
parents:
diff changeset
     9
    <T> void m(Object o) {
90a73be53aa0 4881267: improve diagnostic for "instanceof T" for type parameter T
kizune
parents:
diff changeset
    10
        boolean b = o instanceof T;
90a73be53aa0 4881267: improve diagnostic for "instanceof T" for type parameter T
kizune
parents:
diff changeset
    11
    }
90a73be53aa0 4881267: improve diagnostic for "instanceof T" for type parameter T
kizune
parents:
diff changeset
    12
}