mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
java: incorrect annotation decoding fixed
This commit is contained in:
@@ -25,6 +25,9 @@ abstract class Annotations {
|
||||
@pkg.Annotations.A4(ids = {42, 84})
|
||||
abstract void m4b();
|
||||
|
||||
@pkg.Annotations.A5(b = true, value = java.lang.Integer.class)
|
||||
abstract void m5();
|
||||
|
||||
static @interface IndeterminateAnno {
|
||||
float f1() default -1.0f / 0.0;
|
||||
|
||||
@@ -39,6 +42,12 @@ abstract class Annotations {
|
||||
double d3() default 1.0 / 0.0;
|
||||
}
|
||||
|
||||
static @interface A5 {
|
||||
boolean b() default false;
|
||||
|
||||
java.lang.Class<? extends java.lang.Number> value() default java.lang.Integer.class;
|
||||
}
|
||||
|
||||
static @interface A4 {
|
||||
int[] ids() default {};
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -16,6 +16,11 @@ abstract class Annotations {
|
||||
int[] ids() default { };
|
||||
}
|
||||
|
||||
@interface A5 {
|
||||
boolean b() default false;
|
||||
Class<? extends Number> value() default Integer.class;
|
||||
}
|
||||
|
||||
@A1 abstract void m1();
|
||||
|
||||
@A2() abstract void m2a();
|
||||
@@ -26,6 +31,8 @@ abstract class Annotations {
|
||||
@A4 abstract void m4a();
|
||||
@A4(ids = {42, 84}) abstract void m4b();
|
||||
|
||||
@A5(b = true, value = Integer.class) abstract void m5();
|
||||
|
||||
@interface IndeterminateAnno {
|
||||
float f1() default Float.NEGATIVE_INFINITY;
|
||||
float f2() default Float.NaN;
|
||||
|
||||
Reference in New Issue
Block a user