-
Bug
-
Resolution: Fixed
-
P2
-
6-pool, 7, 8, 8-repo-lambda
-
b91
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8072363 | 7u85 | Joel Borggrén-Franck | P2 | Resolved | Fixed | b01 |
JDK-8061361 | 7u80 | Robert Mckenna | P2 | Closed | Fixed | b04 |
The following code does not compile:
@interface A {
Runnable r1 = ()->{}; //1
Runnable r2 = new Runnable() { public void run() { }}; //2
}
@A
class Test { }
Following output is generated:
Test.java:93: error: annotation A is missing values for attributes lambda$0,<clinit>
@A
^
1 error
However, this is only partly lambda-related - if line (1) is commented, the following output is generated:
Test.java:94: error: annotation A is missing value for the attribute <clinit>
@A
^
1 error
@interface A {
Runnable r1 = ()->{}; //1
Runnable r2 = new Runnable() { public void run() { }}; //2
}
@A
class Test { }
Following output is generated:
Test.java:93: error: annotation A is missing values for attributes lambda$0,<clinit>
@A
^
1 error
However, this is only partly lambda-related - if line (1) is commented, the following output is generated:
Test.java:94: error: annotation A is missing value for the attribute <clinit>
@A
^
1 error
- backported by
-
JDK-8072363 javac can't handle annotations with a <clinit> from a previous compilation unit
- Resolved
-
JDK-8061361 javac can't handle annotations with a <clinit> from a previous compilation unit
- Closed