Emmanuel Bourg pushed to branch upstream at Debian Java Maintainers / jakarta-validation-api
Commits: d85d56b0 by Emmanuel Bourg at 2020-07-26T17:20:43+02:00 New upstream version 3.0.0 - - - - - 5 changed files: - README.md - pom.xml - src/main/xsd/validation-configuration-3.0.xsd - src/main/xsd/validation-mapping-3.0.xsd - src/test/java/jakarta/validation/ValidationTest.java Changes: ===================================== README.md ===================================== @@ -32,3 +32,8 @@ Want to join us? You can find all the relevant information about contributing to ## Continuous Integration The official Continuous Integration service for the project is hosted on [ci.eclipse.org](https://ci.eclipse.org/bean-validation/). + +## Publishing the Schemas +The schema files should be published to the https://github.com/jakartaee/jakarta.ee website repository by following the +procedure described at https://eclipse-ee4j.github.io/jakartaee-platform/publish-xml-schemas. The location for +the schema files in the repsitory is the static/xml/ns/validation directory. ===================================== pom.xml ===================================== @@ -15,7 +15,7 @@ <groupId>jakarta.validation</groupId> <artifactId>jakarta.validation-api</artifactId> - <version>3.0.0-M1</version> + <version>3.0.0</version> <packaging>jar</packaging> <name>Jakarta Bean Validation API</name> <url>https://beanvalidation.org</url> @@ -183,7 +183,7 @@ <windowtitle>Jakarta Bean Validation API ${project.version}</windowtitle> <bottom><![CDATA[ Comments to: <a href="mailto:[email protected]">[email protected]</a>.<br> -Copyright © 2019 Eclipse Foundation.<br> +Copyright © 2019,2020 Eclipse Foundation.<br> Use is subject to <a href="{@docRoot}/doc-files/speclicense.html" target="_top">EFSL</a>; this spec is based on material that is licensed under the Apache License, version 2.0.]]> </bottom> </configuration> ===================================== src/main/xsd/validation-configuration-3.0.xsd ===================================== @@ -7,9 +7,9 @@ --> <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" - targetNamespace="https://xmlns.jakarta.ee/xml/ns/validation/configuration" + targetNamespace="https://jakarta.ee/xml/ns/validation/configuration" xmlns:xs="http://www.w3.org/2001/XMLSchema" - xmlns:config="https://xmlns.jakarta.ee/xml/ns/validation/configuration" + xmlns:config="https://jakarta.ee/xml/ns/validation/configuration" version="3.0"> <xs:annotation> @@ -20,17 +20,17 @@ Jakarta Bean Validation configuration files must indicate the Jakarta Bean Validation XML schema by using the validation namespace: - https://xmlns.jakarta.ee/xml/ns/validation/configuration + https://jakarta.ee/xml/ns/validation/configuration and indicate the version of the schema by using the version attribute as shown below: <validation-config - xmlns="https://xmlns.jakarta.ee/xml/ns/validation/configuration" + xmlns="https://jakarta.ee/xml/ns/validation/configuration" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" - https://xmlns.jakarta.ee/xml/ns/validation/configuration - https://xmlns.jakarta.ee/xml/ns/validation/configuration/validation-configuration-3.0.xsd" + https://jakarta.ee/xml/ns/validation/configuration + https://jakarta.ee/xml/ns/validation/validation-configuration-3.0.xsd" version="3.0"> [...] </validation-config> @@ -56,7 +56,7 @@ <xs:element type="config:propertyType" name="property" maxOccurs="unbounded" minOccurs="0"/> </xs:sequence> - <xs:attribute name="version" type="config:versionType" fixed="2.0" use="required"/> + <xs:attribute name="version" type="config:versionType" fixed="3.0" use="required"/> </xs:complexType> <xs:complexType name="executable-validationType"> ===================================== src/main/xsd/validation-mapping-3.0.xsd ===================================== @@ -7,10 +7,10 @@ --> <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" - targetNamespace="https://xmlns.jakarta.ee/xml/ns/validation/mapping" + targetNamespace="https://jakarta.ee/xml/ns/validation/mapping" xmlns:xs="http://www.w3.org/2001/XMLSchema" - xmlns:map="https://xmlns.jakarta.ee/xml/ns/validation/mapping" - version="2.0"> + xmlns:map="https://jakarta.ee/xml/ns/validation/mapping" + version="3.0"> <xs:annotation> <xs:documentation><![CDATA[ @@ -19,17 +19,17 @@ Jakarta Bean Validation constraint mapping files must indicate the Jakarta Bean Validation XML schema by using the constraint mapping namespace: - https://xmlns.jakarta.ee/xml/ns/validation/mapping + https://jakarta.ee/xml/ns/validation/mapping and indicate the version of the schema by using the version attribute as shown below: <constraint-mappings - xmlns="https://xmlns.jakarta.ee/xml/ns/validation/mapping" + xmlns="https://jakarta.ee/xml/ns/validation/mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" - https://xmlns.jakarta.ee/xml/ns/validation/mapping - https://xmlns.jakarta.ee/xml/ns/validation/mapping/validation-mapping-3.0.xsd" + https://jakarta.ee/xml/ns/validation/mapping + https://jakarta.ee/xml/ns/validation/validation-mapping-3.0.xsd" version="3.0"> ... </constraint-mappings> @@ -70,7 +70,7 @@ maxOccurs="unbounded" minOccurs="0"/> </xs:sequence> - <xs:attribute name="version" type="map:versionType" fixed="2.0" use="required"/> + <xs:attribute name="version" type="map:versionType" fixed="3.0" use="required"/> </xs:complexType> <xs:simpleType name="versionType"> <xs:restriction base="xs:token"> ===================================== src/test/java/jakarta/validation/ValidationTest.java ===================================== @@ -86,6 +86,12 @@ public class ValidationTest { @Test public void testCachedProvidersCanBeGarbageCollected() { int LOOP_COUNT = 100; + int BUF_SIZE = 10 * 1024 * 1024; + // Need to calcuate how much memory to use + long maxMemory = Runtime.getRuntime().maxMemory(); + long BUF_COUNT = maxMemory / BUF_SIZE + 1; + assertTrue(BUF_COUNT < Integer.MAX_VALUE, "BUF_COUNT > Integer.MAX_VALUE"); + int ALLOC_COUNT = Math.toIntExact(BUF_COUNT); ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader(); try { @@ -98,7 +104,7 @@ public class ValidationTest { assertTrue( createdProviders > 1, "There should be cached providers" ); try { - byte[][] buf = new byte[1024][]; + byte[][] buf = new byte[ALLOC_COUNT][]; for ( int i = 0; i < buf.length; i++ ) { buf[i] = new byte[10 * 1024 * 1024]; } View it on GitLab: https://salsa.debian.org/java-team/jakarta-validation-api/-/commit/d85d56b0b53656928a663a6fd33e66d019ffa387 -- View it on GitLab: https://salsa.debian.org/java-team/jakarta-validation-api/-/commit/d85d56b0b53656928a663a6fd33e66d019ffa387 You're receiving this email because of your account on salsa.debian.org.
_______________________________________________ pkg-java-commits mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-java-commits

