From e374d826deb53789f32d69773bb5c2e9f63941e7 Mon Sep 17 00:00:00 2001 From: Colin Alworth Date: Wed, 11 Sep 2024 12:18:23 -0500 Subject: [PATCH 1/2] Support Java9+'s ElementType.MODULE 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 --- .../com/google/gwt/emul/java/lang/annotation/ElementType.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user/super/com/google/gwt/emul/java/lang/annotation/ElementType.java b/user/super/com/google/gwt/emul/java/lang/annotation/ElementType.java index 4d09dc7d9d9..6fa4615c955 100644 --- a/user/super/com/google/gwt/emul/java/lang/annotation/ElementType.java +++ b/user/super/com/google/gwt/emul/java/lang/annotation/ElementType.java @@ -22,5 +22,5 @@ */ public enum ElementType { ANNOTATION_TYPE, CONSTRUCTOR, FIELD, LOCAL_VARIABLE, METHOD, PACKAGE, - PARAMETER, TYPE, TYPE_PARAMETER, TYPE_USE, + PARAMETER, TYPE, TYPE_PARAMETER, TYPE_USE, MODULE, } From 79fc48c756bb8c184e65014e7d9bf732c18da349 Mon Sep 17 00:00:00 2001 From: Colin Alworth Date: Wed, 11 Sep 2024 17:05:07 -0500 Subject: [PATCH 2/2] Reorder alphabetically, add RECORD_COMPONENT --- .../com/google/gwt/emul/java/lang/annotation/ElementType.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/user/super/com/google/gwt/emul/java/lang/annotation/ElementType.java b/user/super/com/google/gwt/emul/java/lang/annotation/ElementType.java index 6fa4615c955..6ec5dc9548e 100644 --- a/user/super/com/google/gwt/emul/java/lang/annotation/ElementType.java +++ b/user/super/com/google/gwt/emul/java/lang/annotation/ElementType.java @@ -21,6 +21,6 @@ * docs]. */ public enum ElementType { - ANNOTATION_TYPE, CONSTRUCTOR, FIELD, LOCAL_VARIABLE, METHOD, PACKAGE, - PARAMETER, TYPE, TYPE_PARAMETER, TYPE_USE, MODULE, + ANNOTATION_TYPE, CONSTRUCTOR, FIELD, LOCAL_VARIABLE, METHOD, MODULE, PACKAGE, + PARAMETER, RECORD_COMPONENT, TYPE, TYPE_PARAMETER, TYPE_USE, }