mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-04 04:09:09 +07:00
This patch fixes the problems with reporting errors when: - a class that is annotated with PreviewFeature instantiated; - a method that is annotated with PreviewFeature used in a method reference; - a class or an interface that is annotated with PreviewFeature is inherited Signed-off-by: Nikita Eshkeev <nikita.eshkeev@jetbrains.com> GitOrigin-RevId: 586caeddae4446ad398878e0bd4bf66858e4518c
12 lines
526 B
Java
12 lines
526 B
Java
import jdk.internal.PreviewFeature;
|
|
import jdk.internal.PreviewFeature.Feature;
|
|
import <error descr="Patterns in 'instanceof' are not supported at language level '9'">org.myorg.preview.FromPreview</error>;
|
|
|
|
class Custom1 implements <error descr="Patterns in 'instanceof' are not supported at language level '9'">org.myorg.preview.FromPreview</error> {
|
|
public void g() {}
|
|
}
|
|
|
|
class Custom2 implements <error descr="Patterns in 'instanceof' are not supported at language level '9'">FromPreview</error> {
|
|
public void g() {}
|
|
}
|