Community
Participate
Working Groups
When the symmetric attribute is set for a constraint, the resulting generated constraint class is with a compile error. E.g., the following pattern @Constraint(key = {hi1, hi2}, message = "Duplicate identifier $hi1.identifier$", severity = "error", symmetric = {hi1, hi2}) pattern nonUniqueInstanceIdentifiers(hi1 : HostInstance, hi2: HostInstance) { HostInstance.identifier(hi1, name); HostInstance.identifier(hi2, name); } generates the following key names method @Override public Set<List<String>> getSymmetricKeyNames() { Set<List<String>> symmetricKeyNamesSet = new HashSet<>( Arrays.asList( "hi1", "hi2" ) ); return symmetricKeyNamesSet; } This results in a compile error, as the HashSet constructor returns a set of strings instead a set of string lists.
New Gerrit change created: https://git.eclipse.org/r/126497
Gerrit change https://git.eclipse.org/r/126497 was merged to [master]. Commit: http://git.eclipse.org/c/viatra/org.eclipse.viatra.git/commit/?id=5447c129c43ec3394e32ec67006b95e536c21847
New Gerrit change created: https://git.eclipse.org/r/126762
Gerrit change https://git.eclipse.org/r/126762 was merged to [2.0-maintenance]. Commit: http://git.eclipse.org/c/viatra/org.eclipse.viatra.git/commit/?id=46ebb2baa94d542bbbdb28a1cd7f45dc46465341
Fixed in master and backported to 2.0-maintenance.
New Gerrit change created: https://git.eclipse.org/r/127248
Gerrit change https://git.eclipse.org/r/127248 was merged to [master]. Commit: http://git.eclipse.org/c/viatra/org.eclipse.viatra.git/commit/?id=b075944c9582012b69419f8d85755c3b303bdbca