[core] Remove support for deprecated rule set references notation

The old notation <lang>-<ruleset> is not supported anymore. It is
now interpreted as a ruleset reference without a ruleset and just
referencing a single rule. Also the release number notation is
not supported anymore.

Since RuleSetReferenceId is Internal+Deprecated, no API changes.
Clarified External/Internal: A RuleSetReference is either absolute
(RuleSet is known) or relative (RuleSet is not known).

Fixes #4313
This commit is contained in:
Andreas Dangel
2024-01-05 12:28:00 +01:00
parent a558fd17eb
commit 7b24edc0db
9 changed files with 265 additions and 514 deletions

View File

@@ -460,7 +460,7 @@ public abstract class AbstractRuleSetFactoryTest {
// Read RuleSet from XML, first time
RuleSetLoader loader = new RuleSetLoader();
RuleSet ruleSet2 = loader.loadFromString("", xml2);
RuleSet ruleSet2 = loader.loadFromString("readRuleSet1.xml", xml2);
// Do write/read a 2nd time, just to be sure
@@ -473,7 +473,7 @@ public abstract class AbstractRuleSetFactoryTest {
// System.out.println("xml3: " + xml3);
// Read RuleSet from XML, second time
RuleSet ruleSet3 = loader.loadFromString("", xml3);
RuleSet ruleSet3 = loader.loadFromString("readRuleSet2.xml", xml3);
// The 2 written XMLs should all be valid w.r.t Schema/DTD
assertTrue(validateAgainstSchema(new ByteArrayInputStream(xml2.getBytes())),