Merge branch 'db/javac-ast'

# Conflicts:
#	platform/util/resources/misc/registry.properties
This commit is contained in:
Dmitry Batkovich
2016-10-17 19:05:41 +03:00
126 changed files with 4753 additions and 71 deletions
@@ -0,0 +1,15 @@
class Bar {
void m() {
Foo f = new Foo() {
};
}
void m2() {
Foo f2 = new Foo() {
};
}
}
@@ -0,0 +1,15 @@
public class Baz {
void m() {
new Runnable() {
public void run() {
class FooImpl2 extends Foo {
}
}
};
}
}
@@ -0,0 +1,3 @@
public class Fo<caret>o {
}
@@ -0,0 +1,9 @@
class FooImpl extends Foo {
void m() {
Foo f = new Foo() {
};
}
}
@@ -0,0 +1,9 @@
class Test {
void m() {
class FooInsideMethodImpl extends Foo {}
}
}
@@ -0,0 +1,14 @@
import java.util.List;
import java.util.AbstractList;
class Foo {
interface ListImpl extends List {
}
abstract static class AbstractListImpl extends AbstractList {
}
}
@@ -0,0 +1,42 @@
import java.util.function.IntSupplier;
import java.util.Collections;
class Foo {
void m() {
Runnable r = Collections::emptyList;
Runnable r2 = () -> {
IntSupplier s = () -> 1;
Runnable r3 = () -> {
};
};
IntSupplier s2 = () -> 1;
}
void m2() {
Runnable r = () -> {
Runnable r3 = () -> {
IntSupplier s2 = () -> 1;
Runnable r4 = () -> {
};
};
IntSupplier s = () -> 1;
};
}
}
@@ -0,0 +1,7 @@
public class Foo {
public void b<caret>ar() {
}
}
@@ -0,0 +1,5 @@
class Bar {
void m() {
Foo f = () -> {};
}
}
@@ -0,0 +1,9 @@
import java.util.Collections;
class BarRef {
static void m() {
Foo r = Collections::emptyList;
}
}
@@ -0,0 +1,4 @@
@FunctionalInterface
public interface F<caret>oo {
void doAction();
}
@@ -0,0 +1,11 @@
interface FooImpl extends Foo {}
class AAA {
void m() {
FooImpl l = () -> {};
}
}
@@ -0,0 +1,8 @@
public class Bar {
public String getMyName() {
return "Bar...";
};
}
@@ -0,0 +1,5 @@
public class Baz {
public void main(FooImpl f) {
System.out.println(f.getMyName());
}
}
@@ -0,0 +1,5 @@
public interface Foo {
String getM<caret>yName();
}
@@ -0,0 +1,7 @@
public class FooImpl implements Foo {
public String getMyName() {
return "FooImpl is my name";
};
}