diff --git a/core/src/main/java/org/lflang/validation/LFValidator.java b/core/src/main/java/org/lflang/validation/LFValidator.java index 7dcf00d107..fe15002096 100644 --- a/core/src/main/java/org/lflang/validation/LFValidator.java +++ b/core/src/main/java/org/lflang/validation/LFValidator.java @@ -1346,8 +1346,15 @@ public void checkAttributes(Attribute attr) { error("Unknown attribute.", Literals.ATTRIBUTE__ATTR_NAME); return; } + // Check the validity of the attribute. spec.check(this, attr); + + if (name.equalsIgnoreCase("label")) { + warning( + "The @label attribute is deprecated. Please use named reactions instead.", + Literals.ATTR_PARM__NAME); + } } @Check(CheckType.FAST)