mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
IDEA-67556 (use highest language level in an artificial elements was a bad idea)
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
import pkg.Bar;
|
||||
import pkg.enum.Foo;
|
||||
|
||||
class Test {
|
||||
void m() {
|
||||
Bar b = new Bar();
|
||||
b.doSomething(Foo.FOO); // with language level JDK 1.4 'enum' shouldn't be a keyword (see IDEA-67556)
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package pkg;
|
||||
|
||||
import pkg.enum.Foo;
|
||||
|
||||
public class Bar {
|
||||
public void doSomething(Foo foo) {
|
||||
System.out.println("foo=" + foo);
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package pkg.enum;
|
||||
|
||||
public class Foo {
|
||||
public static Foo FOO = new Foo();
|
||||
}
|
||||
Reference in New Issue
Block a user