Skip to content

Commit 6307e79

Browse files
authored
Support ElementType MODULE and RECORD_COMPONENT on annotations (#10002)
While GWT has no use for JPMS modules, sources that rely on this target fail to compile with GWT (causing an error in JDT that results in a hard-to-interpret asm stack trace). Fixes #10001
1 parent 15d11a2 commit 6307e79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

user/super/com/google/gwt/emul/java/lang/annotation/ElementType.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
* docs]</a>.
2222
*/
2323
public enum ElementType {
24-
ANNOTATION_TYPE, CONSTRUCTOR, FIELD, LOCAL_VARIABLE, METHOD, PACKAGE,
25-
PARAMETER, TYPE, TYPE_PARAMETER, TYPE_USE,
24+
ANNOTATION_TYPE, CONSTRUCTOR, FIELD, LOCAL_VARIABLE, METHOD, MODULE, PACKAGE,
25+
PARAMETER, RECORD_COMPONENT, TYPE, TYPE_PARAMETER, TYPE_USE,
2626
}

0 commit comments

Comments
 (0)