mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
tests rules_jvm: migrate test data for java
GitOrigin-RevId: 278d98a5a4ed8586a2f20fa842ca89a888035865
This commit is contained in:
committed by
intellij-monorepo-bot
parent
48119d6255
commit
dc2f4bd7d8
@@ -11,6 +11,7 @@ import static org.junit.Assert.fail;
|
||||
@RunWith(Suite.class)
|
||||
@Suite.SuiteClasses({
|
||||
JvmIncBuilderTest.class,
|
||||
JavaTests.class,
|
||||
ZipBuilderTest.class,
|
||||
DependencyGraphTest.class,
|
||||
KotlinCriTest.class
|
||||
|
||||
+1475
File diff suppressed because it is too large
Load Diff
+6
@@ -0,0 +1,6 @@
|
||||
load("@rules_jvm//:jvm.bzl", "jvm_library")
|
||||
|
||||
jvm_library(
|
||||
name = "a",
|
||||
srcs = glob(["a/**/*.java"], allow_empty = True),
|
||||
)
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
import java.lang.annotation.*;
|
||||
import static java.lang.annotation.ElementType.*;
|
||||
|
||||
@Target({TYPE, FIELD})
|
||||
public @interface A {
|
||||
int value() default 3;
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
import java.lang.annotation.*;
|
||||
import static java.lang.annotation.ElementType.*;
|
||||
|
||||
@Target({TYPE, FIELD, METHOD})
|
||||
public @interface A {
|
||||
int value() default 3;
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
@A(10)
|
||||
public class C {
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
public class C2 {
|
||||
|
||||
@A(30)
|
||||
int field;
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
================ Step #1 =================
|
||||
Cleaning output files:
|
||||
A.class
|
||||
End of files
|
||||
Compiling files:
|
||||
java/annotations/addAnnotationTarget/a/A.java
|
||||
End of files
|
||||
------------------------------------------
|
||||
Exit code: OK
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
load("@rules_jvm//:jvm.bzl", "jvm_library")
|
||||
|
||||
jvm_library(
|
||||
name = "a",
|
||||
srcs = glob(["a/**/*.java"], allow_empty = True),
|
||||
)
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
import java.lang.annotation.*;
|
||||
import static java.lang.annotation.ElementType.*;
|
||||
|
||||
@Target({TYPE, FIELD, TYPE_USE})
|
||||
public @interface A {
|
||||
int value() default 3;
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
import java.lang.annotation.*;
|
||||
import static java.lang.annotation.ElementType.*;
|
||||
|
||||
@Target({TYPE, FIELD, METHOD, TYPE_USE})
|
||||
public @interface A {
|
||||
int value() default 3;
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
@A(10)
|
||||
public class C {
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
public class C2 {
|
||||
|
||||
@A(30)
|
||||
int field;
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
================ Step #1 =================
|
||||
Cleaning output files:
|
||||
A.class
|
||||
End of files
|
||||
Compiling files:
|
||||
java/annotations/addAnnotationTargetTypeUse/a/A.java
|
||||
End of files
|
||||
Cleaning output files:
|
||||
C.class
|
||||
C2.class
|
||||
End of files
|
||||
Compiling files:
|
||||
java/annotations/addAnnotationTargetTypeUse/a/C.java
|
||||
java/annotations/addAnnotationTargetTypeUse/a/C2.java
|
||||
End of files
|
||||
------------------------------------------
|
||||
Exit code: OK
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
load("@rules_jvm//:jvm.bzl", "jvm_library")
|
||||
|
||||
jvm_library(
|
||||
name = "a",
|
||||
srcs = glob(["a/**/*.java"], allow_empty = True),
|
||||
)
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
public @interface A {
|
||||
int value();
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
public @interface A {
|
||||
int value();
|
||||
int value1() default 7;
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
@A(10)
|
||||
public class C {
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
public class C1 {
|
||||
|
||||
@A(20)
|
||||
void foo() {
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
public class C2 {
|
||||
|
||||
@A(30)
|
||||
int field;
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
================ Step #1 =================
|
||||
Cleaning output files:
|
||||
A.class
|
||||
End of files
|
||||
Compiling files:
|
||||
java/annotations/addAnnotationTypeMemberWithDefaultValue/a/A.java
|
||||
End of files
|
||||
------------------------------------------
|
||||
Exit code: OK
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
load("@rules_jvm//:jvm.bzl", "jvm_library")
|
||||
|
||||
jvm_library(
|
||||
name = "a",
|
||||
srcs = glob(["a/**/*.java"], allow_empty = True),
|
||||
)
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
public @interface A {
|
||||
Class value();
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
public @interface A {
|
||||
Class value();
|
||||
Class value1() default byte.class;
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
@A(int.class)
|
||||
public class C {
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
public class C1 {
|
||||
|
||||
@A(boolean.class)
|
||||
void foo() {
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
public class C2 {
|
||||
|
||||
@A(double.class)
|
||||
int field;
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
================ Step #1 =================
|
||||
Cleaning output files:
|
||||
A.class
|
||||
End of files
|
||||
Compiling files:
|
||||
java/annotations/addAnnotationTypeMemberWithDefaultValue2/a/A.java
|
||||
End of files
|
||||
------------------------------------------
|
||||
Exit code: OK
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
load("@rules_jvm//:jvm.bzl", "jvm_library")
|
||||
|
||||
jvm_library(
|
||||
name = "a",
|
||||
srcs = glob(["a/**/*.java"], allow_empty = True),
|
||||
)
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
public @interface A {
|
||||
int value();
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
public @interface A {
|
||||
int value();
|
||||
int value1();
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
@A(10)
|
||||
public class C {
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
public class C1 {
|
||||
|
||||
@A(20)
|
||||
void foo() {
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
public class C2 {
|
||||
|
||||
@A(30)
|
||||
int field;
|
||||
}
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
================ Step #1 =================
|
||||
Cleaning output files:
|
||||
A.class
|
||||
End of files
|
||||
Compiling files:
|
||||
java/annotations/addAnnotationTypeMemberWithoutDefaultValue/a/A.java
|
||||
End of files
|
||||
Cleaning output files:
|
||||
C.class
|
||||
C1.class
|
||||
C2.class
|
||||
End of files
|
||||
Compiling files:
|
||||
java/annotations/addAnnotationTypeMemberWithoutDefaultValue/a/C.java
|
||||
java/annotations/addAnnotationTypeMemberWithoutDefaultValue/a/C1.java
|
||||
java/annotations/addAnnotationTypeMemberWithoutDefaultValue/a/C2.java
|
||||
End of files
|
||||
------------------------------------------
|
||||
Exit code: ERROR
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
load("@rules_jvm//:jvm.bzl", "jvm_library")
|
||||
|
||||
jvm_library(
|
||||
name = "a",
|
||||
srcs = glob(["a/**/*.java"], allow_empty = True),
|
||||
)
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
public @interface A {
|
||||
int value();
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
public @interface A {
|
||||
int value() default 7;
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
@A(10)
|
||||
public class C {
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
public class C1 {
|
||||
|
||||
@A(20)
|
||||
void foo() {
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
public class C2 {
|
||||
|
||||
@A(30)
|
||||
int field;
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
================ Step #1 =================
|
||||
Cleaning output files:
|
||||
A.class
|
||||
End of files
|
||||
Compiling files:
|
||||
java/annotations/addDefaultToAnnotationMember/a/A.java
|
||||
End of files
|
||||
------------------------------------------
|
||||
Exit code: OK
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
load("@rules_jvm//:jvm.bzl", "jvm_library")
|
||||
|
||||
jvm_library(
|
||||
name = "a",
|
||||
srcs = glob(["a/**/*.java"], allow_empty = True),
|
||||
)
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
import java.lang.annotation.*;
|
||||
import static java.lang.annotation.ElementType.*;
|
||||
|
||||
@Target({FIELD})
|
||||
public @interface A {
|
||||
int value() default 3;
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
import java.lang.annotation.*;
|
||||
import static java.lang.annotation.ElementType.*;
|
||||
|
||||
@Target({FIELD, RECORD_COMPONENT})
|
||||
public @interface A {
|
||||
int value() default 3;
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
public class C {
|
||||
@A(10)
|
||||
int field;
|
||||
}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
public record C2 (@A(30) int field) {
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
================ Step #1 =================
|
||||
Cleaning output files:
|
||||
A.class
|
||||
End of files
|
||||
Compiling files:
|
||||
java/annotations/addRecordComponentAnnotationTarget/a/A.java
|
||||
End of files
|
||||
Cleaning output files:
|
||||
C.class
|
||||
C2.class
|
||||
End of files
|
||||
Compiling files:
|
||||
java/annotations/addRecordComponentAnnotationTarget/a/C.java
|
||||
java/annotations/addRecordComponentAnnotationTarget/a/C2.java
|
||||
End of files
|
||||
------------------------------------------
|
||||
Exit code: OK
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
load("@rules_jvm//:jvm.bzl", "jvm_library")
|
||||
|
||||
jvm_library(
|
||||
name = "a",
|
||||
srcs = glob(["a/**/*.java"], allow_empty = True),
|
||||
)
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
import java.lang.annotation.*;
|
||||
import static java.lang.annotation.ElementType.*;
|
||||
|
||||
@Target({TYPE, FIELD})
|
||||
public @interface A {
|
||||
int value() default 3;
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
import java.lang.annotation.*;
|
||||
import static java.lang.annotation.ElementType.*;
|
||||
|
||||
@Target({TYPE, FIELD, TYPE_USE})
|
||||
public @interface A {
|
||||
int value() default 3;
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
@A(10)
|
||||
public class C {
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
public class C2 {
|
||||
|
||||
@A(30)
|
||||
int field;
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
================ Step #1 =================
|
||||
Cleaning output files:
|
||||
A.class
|
||||
End of files
|
||||
Compiling files:
|
||||
java/annotations/addTypeUseAnnotationTarget/a/A.java
|
||||
End of files
|
||||
Cleaning output files:
|
||||
C.class
|
||||
C2.class
|
||||
End of files
|
||||
Compiling files:
|
||||
java/annotations/addTypeUseAnnotationTarget/a/C.java
|
||||
java/annotations/addTypeUseAnnotationTarget/a/C2.java
|
||||
End of files
|
||||
------------------------------------------
|
||||
Exit code: OK
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
load("@rules_jvm//:jvm.bzl", "jvm_library")
|
||||
|
||||
jvm_library(
|
||||
name = "a",
|
||||
srcs = glob(["a/**/*.java"], allow_empty = True),
|
||||
)
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
public class C1 {
|
||||
void foo(D1 data) {
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
public class C2 {
|
||||
void foo(D2 data) {
|
||||
String str = data.field;
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
public class C3 {
|
||||
void foo(D3 data) {
|
||||
data.method(new Integer(10));
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
public class C4 {
|
||||
void foo(D4 data) {
|
||||
data.method(new Integer(10));
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
public class C5 {
|
||||
void foo() {
|
||||
new D5Sub().method();
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
public class C51 {
|
||||
void foo() {
|
||||
new D5Sub2().method();
|
||||
}
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
public class C6 {
|
||||
void foo(D6 data) {
|
||||
}
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
public class C7 {
|
||||
void foo(D7 data) {
|
||||
}
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
public class C8 {
|
||||
void foo(D8 data) {
|
||||
}
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
import org.jetbrains.jps.dependency.test.MockAnnotation;
|
||||
import org.jetbrains.jps.dependency.test.MockHierarchyAnnotation;
|
||||
|
||||
@MockAnnotation
|
||||
@MockHierarchyAnnotation
|
||||
public class D1 {
|
||||
public String field;
|
||||
|
||||
public String method (Integer param) {
|
||||
return param.toString();
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
|
||||
public class D1 {
|
||||
public String field;
|
||||
|
||||
public String method (Integer param) {
|
||||
return param.toString();
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
import org.jetbrains.jps.dependency.test.MockAnnotation;
|
||||
import org.jetbrains.jps.dependency.test.MockHierarchyAnnotation;
|
||||
|
||||
public class D1Sub extends D1{
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
import org.jetbrains.jps.dependency.test.MockAnnotation;
|
||||
import org.jetbrains.jps.dependency.test.MockHierarchyAnnotation;
|
||||
|
||||
public class D1Sub2 extends D1Sub{
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
import org.jetbrains.jps.dependency.test.MockAnnotation;
|
||||
import org.jetbrains.jps.dependency.test.MockHierarchyAnnotation;
|
||||
|
||||
public class D2 {
|
||||
@MockAnnotation
|
||||
@MockHierarchyAnnotation
|
||||
public String field;
|
||||
|
||||
public String method (Integer param) {
|
||||
return param.toString();
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
|
||||
public class D2 {
|
||||
public String field;
|
||||
|
||||
public String method (Integer param) {
|
||||
return param.toString();
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
import org.jetbrains.jps.dependency.test.MockAnnotation;
|
||||
import org.jetbrains.jps.dependency.test.MockHierarchyAnnotation;
|
||||
|
||||
public class D2Sub extends D2{
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
import org.jetbrains.jps.dependency.test.MockAnnotation;
|
||||
import org.jetbrains.jps.dependency.test.MockHierarchyAnnotation;
|
||||
|
||||
public class D2Sub2 extends D2Sub{
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
import org.jetbrains.jps.dependency.test.MockAnnotation;
|
||||
import org.jetbrains.jps.dependency.test.MockHierarchyAnnotation;
|
||||
|
||||
public class D3 {
|
||||
public String field;
|
||||
|
||||
@MockAnnotation
|
||||
@MockHierarchyAnnotation
|
||||
public String method (Integer param) {
|
||||
return param.toString();
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
|
||||
public class D3 {
|
||||
public String field;
|
||||
|
||||
public String method (Integer param) {
|
||||
return param.toString();
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
import org.jetbrains.jps.dependency.test.MockAnnotation;
|
||||
import org.jetbrains.jps.dependency.test.MockHierarchyAnnotation;
|
||||
|
||||
public class D3Sub extends D3{
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
import org.jetbrains.jps.dependency.test.MockAnnotation;
|
||||
import org.jetbrains.jps.dependency.test.MockHierarchyAnnotation;
|
||||
|
||||
public class D3Sub2 extends D3Sub{
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
import org.jetbrains.jps.dependency.test.MockAnnotation;
|
||||
import org.jetbrains.jps.dependency.test.MockHierarchyAnnotation;
|
||||
|
||||
public class D4 {
|
||||
public String field;
|
||||
|
||||
public String method (@MockAnnotation @MockHierarchyAnnotation Integer param) {
|
||||
return param.toString();
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
|
||||
public class D4 {
|
||||
public String field;
|
||||
|
||||
public String method (Integer param) {
|
||||
return param.toString();
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
import org.jetbrains.jps.dependency.test.MockAnnotation;
|
||||
import org.jetbrains.jps.dependency.test.MockHierarchyAnnotation;
|
||||
|
||||
public class D4Sub extends D4{
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
import org.jetbrains.jps.dependency.test.MockAnnotation;
|
||||
import org.jetbrains.jps.dependency.test.MockHierarchyAnnotation;
|
||||
|
||||
public class D4Sub2 extends D4Sub{
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
import org.jetbrains.jps.dependency.test.MockAnnotation;
|
||||
|
||||
public interface D5 {
|
||||
public abstract Object method();
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
import org.jetbrains.jps.dependency.test.MockAnnotation;
|
||||
|
||||
public interface D5 {
|
||||
@MockAnnotation
|
||||
public abstract Object method ();
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
import org.jetbrains.jps.dependency.test.MockAnnotation;
|
||||
import org.jetbrains.jps.dependency.test.MockHierarchyAnnotation;
|
||||
|
||||
public class D5Sub implements D5 {
|
||||
public Object method () {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
import org.jetbrains.jps.dependency.test.MockAnnotation;
|
||||
import org.jetbrains.jps.dependency.test.MockHierarchyAnnotation;
|
||||
|
||||
public class D5Sub2 implements D5 {
|
||||
public String method () {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
import org.jetbrains.jps.dependency.test.MockAnnotation;
|
||||
|
||||
@MockAnnotation(param1 = 10)
|
||||
public class D6 {
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
import org.jetbrains.jps.dependency.test.MockAnnotation;
|
||||
|
||||
@MockAnnotation(param1 = 20)
|
||||
public class D6 {
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
import org.jetbrains.jps.dependency.test.MockAnnotation;
|
||||
|
||||
@MockAnnotation(param1 = 10)
|
||||
public class D7 {
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
import org.jetbrains.jps.dependency.test.MockAnnotation;
|
||||
|
||||
@MockAnnotation(param2 = 10)
|
||||
public class D7 {
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
import org.jetbrains.jps.dependency.test.MockAnnotation;
|
||||
|
||||
@MockAnnotation(enumParam = MockAnnotation.EnumParam.VALUE_2)
|
||||
public class D8 {
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
import org.jetbrains.jps.dependency.test.MockAnnotation;
|
||||
|
||||
@MockAnnotation(enumParam = MockAnnotation.EnumParam.VALUE_3)
|
||||
public class D8 {
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
package org.jetbrains.jps.dependency.test;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
@Target({ElementType.TYPE, ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER})
|
||||
public @interface MockAnnotation {
|
||||
|
||||
int param1() default 1;
|
||||
int param2() default 2;
|
||||
|
||||
EnumParam enumParam() default EnumParam.VALUE_1;
|
||||
|
||||
enum EnumParam {
|
||||
VALUE_1, VALUE_2, VALUE_3;
|
||||
}
|
||||
}
|
||||
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
package org.jetbrains.jps.dependency.test;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
@Target({ElementType.TYPE, ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER})
|
||||
public @interface MockHierarchyAnnotation {
|
||||
}
|
||||
+65
@@ -0,0 +1,65 @@
|
||||
================ Step #1 =================
|
||||
Cleaning output files:
|
||||
D1.class
|
||||
D2.class
|
||||
D3.class
|
||||
D4.class
|
||||
D5.class
|
||||
D6.class
|
||||
D7.class
|
||||
D8.class
|
||||
End of files
|
||||
Compiling files:
|
||||
java/annotations/annotationsTracker/a/D1.java
|
||||
java/annotations/annotationsTracker/a/D2.java
|
||||
java/annotations/annotationsTracker/a/D3.java
|
||||
java/annotations/annotationsTracker/a/D4.java
|
||||
java/annotations/annotationsTracker/a/D5.java
|
||||
java/annotations/annotationsTracker/a/D6.java
|
||||
java/annotations/annotationsTracker/a/D7.java
|
||||
java/annotations/annotationsTracker/a/D8.java
|
||||
End of files
|
||||
Cleaning output files:
|
||||
C1.class
|
||||
C2.class
|
||||
C3.class
|
||||
C4.class
|
||||
C5.class
|
||||
C51.class
|
||||
C6.class
|
||||
C7.class
|
||||
C8.class
|
||||
D1Sub.class
|
||||
D1Sub2.class
|
||||
D2Sub.class
|
||||
D2Sub2.class
|
||||
D3Sub.class
|
||||
D3Sub2.class
|
||||
D4Sub.class
|
||||
D4Sub2.class
|
||||
D5Sub.class
|
||||
D5Sub2.class
|
||||
End of files
|
||||
Compiling files:
|
||||
java/annotations/annotationsTracker/a/C1.java
|
||||
java/annotations/annotationsTracker/a/C2.java
|
||||
java/annotations/annotationsTracker/a/C3.java
|
||||
java/annotations/annotationsTracker/a/C4.java
|
||||
java/annotations/annotationsTracker/a/C5.java
|
||||
java/annotations/annotationsTracker/a/C51.java
|
||||
java/annotations/annotationsTracker/a/C6.java
|
||||
java/annotations/annotationsTracker/a/C7.java
|
||||
java/annotations/annotationsTracker/a/C8.java
|
||||
java/annotations/annotationsTracker/a/D1Sub.java
|
||||
java/annotations/annotationsTracker/a/D1Sub2.java
|
||||
java/annotations/annotationsTracker/a/D2Sub.java
|
||||
java/annotations/annotationsTracker/a/D2Sub2.java
|
||||
java/annotations/annotationsTracker/a/D3Sub.java
|
||||
java/annotations/annotationsTracker/a/D3Sub2.java
|
||||
java/annotations/annotationsTracker/a/D4Sub.java
|
||||
java/annotations/annotationsTracker/a/D4Sub2.java
|
||||
java/annotations/annotationsTracker/a/D5Sub.java
|
||||
java/annotations/annotationsTracker/a/D5Sub2.java
|
||||
End of files
|
||||
------------------------------------------
|
||||
Exit code: OK
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
load("@rules_jvm//:jvm.bzl", "jvm_library")
|
||||
|
||||
jvm_library(
|
||||
name = "a",
|
||||
srcs = glob(["a/**/*.java"], allow_empty = True),
|
||||
)
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
public @interface A {
|
||||
int value();
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
import java.lang.annotation.*;
|
||||
import static java.lang.annotation.RetentionPolicy.*;
|
||||
|
||||
@Retention(SOURCE)
|
||||
public @interface A {
|
||||
int value();
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
@A(10)
|
||||
public class C {
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
public class C1 {
|
||||
|
||||
@A(20)
|
||||
void foo() {
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
public class C2 {
|
||||
|
||||
@A(30)
|
||||
int field;
|
||||
}
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
================ Step #1 =================
|
||||
Cleaning output files:
|
||||
A.class
|
||||
End of files
|
||||
Compiling files:
|
||||
java/annotations/changeAnnotationRetentionPolicy/a/A.java
|
||||
End of files
|
||||
Cleaning output files:
|
||||
C.class
|
||||
C1.class
|
||||
C2.class
|
||||
End of files
|
||||
Compiling files:
|
||||
java/annotations/changeAnnotationRetentionPolicy/a/C.java
|
||||
java/annotations/changeAnnotationRetentionPolicy/a/C1.java
|
||||
java/annotations/changeAnnotationRetentionPolicy/a/C2.java
|
||||
End of files
|
||||
------------------------------------------
|
||||
Exit code: OK
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user