File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 1
1
4
2
2
true
3
+ 10
3
4
[@beans.LibraryAnnotation_1()]
4
5
some text
5
6
other text
Original file line number Diff line number Diff line change 1
- class A {
1
+ class A :
2
2
@ scala.beans.BeanProperty val x = 4
3
3
@ scala.beans.BooleanBeanProperty val y = true
4
4
@ scala.beans.BeanProperty var mutableOneWithLongName = " some text"
5
5
6
6
@ scala.beans.BeanProperty
7
7
@ beans.LibraryAnnotation_1
8
8
val retainingAnnotation = 5
9
- }
9
+
10
+ trait T :
11
+ @ scala.beans.BeanProperty val x : Int
12
+
13
+ class T1 extends T :
14
+ override val x = 5
15
+
16
+ class T2 extends T1 :
17
+ override val x = 10
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ public A run() throws ReflectiveOperationException{
5
5
A a = new A ();
6
6
System .out .println (a .getX ());
7
7
System .out .println (a .isY ());
8
+ System .out .println (new T2 ().getX ());
8
9
9
10
System .out .println (Arrays .asList (a .getClass ().getMethod ("getRetainingAnnotation" ).getAnnotations ()));
10
11
You can’t perform that action at this time.
0 commit comments