Kapt3: Number of bugfixes in JCTreeConverter:
Convert Java primitive and array types properly. Enums: ignore first two synthetic constructor parameters, do not generate super class constructor call, add ACC_ENUM flag to enum values, do not generate "values" and "valueOf" methods. Provide a JavaFileObject for JCCompilationUnit. Handle DefaultImpls, ignore empty DefaultImpls classes. Use a name table from Javac Names.
This commit is contained in:
committed by
Yan Zhulanow
parent
e131763cb0
commit
e4158a5571
+9
-20
@@ -1,19 +1,18 @@
|
||||
|
||||
public final class Test {
|
||||
|
||||
public /*missing*/ Test() {
|
||||
public Test() {
|
||||
super();
|
||||
}
|
||||
|
||||
public static final class Nested {
|
||||
|
||||
public /*missing*/ Nested() {
|
||||
public Nested() {
|
||||
super();
|
||||
}
|
||||
|
||||
public static final class NestedNested {
|
||||
|
||||
public /*missing*/ NestedNested() {
|
||||
public NestedNested() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
@@ -21,7 +20,7 @@ public final class Test {
|
||||
|
||||
public final class Inner {
|
||||
|
||||
public /*missing*/ Inner(Test $outer) {
|
||||
public Inner(Test $outer) {
|
||||
super();
|
||||
}
|
||||
}
|
||||
@@ -29,7 +28,7 @@ public final class Test {
|
||||
public static final class NestedObject {
|
||||
public static final Test.NestedObject INSTANCE = null;
|
||||
|
||||
private /*missing*/ NestedObject() {
|
||||
private NestedObject() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
@@ -38,20 +37,10 @@ public final class Test {
|
||||
}
|
||||
|
||||
public static enum NestedEnum {
|
||||
;
|
||||
public static final Test.NestedEnum BLACK = null;
|
||||
public static final Test.NestedEnum WHITE = null;
|
||||
/*public static final*/ BLACK /* = null */,
|
||||
/*public static final*/ WHITE /* = null */;
|
||||
|
||||
protected /*missing*/ NestedEnum(java.lang.String $enum_name_or_ordinal$0, int $enum_name_or_ordinal$1) {
|
||||
super(null, 0);
|
||||
}
|
||||
|
||||
public static Test.NestedEnum[] values() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static Test.NestedEnum valueOf(java.lang.String p0) {
|
||||
return null;
|
||||
NestedEnum() {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user