< prev index next >

test/langtools/tools/javac/diags/examples/PrimitivePatternMatching.java

Print this page
*** 21,10 ***
--- 21,12 ---
   * questions.
   */
  
  // key: compiler.misc.feature.primitive.patterns
  // key: compiler.warn.preview.feature.use.plural
+ // as of Valhalla, j.l.Record is a preview class:
+ // key: compiler.warn.preview.feature.use.classfile
  // options: --enable-preview -source ${jdk.version} -Xlint:preview
  
  class PrimitivePatternMatching {
      boolean m(Object o) {
          return o instanceof int s;
< prev index next >