[Git][java-team/jakarta-validation-api][master] 3 commits: New upstream version 3.0.0

Emmanuel Bourg gitlab at salsa.debian.org
Sun Jul 26 16:23:43 BST 2020



Emmanuel Bourg pushed to branch master 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
- - - - -
34974e62 by Emmanuel Bourg at 2020-07-26T17:20:43+02:00
Update upstream source from tag 'upstream/3.0.0'

Update to upstream version '3.0.0'
with Debian dir d0e4cfc2721e9baba593e8332630421a71abadf3
- - - - -
09db243a by Emmanuel Bourg at 2020-07-26T17:23:16+02:00
New upstream release (3.0.0)

- - - - -


6 changed files:

- README.md
- debian/changelog
- 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.


=====================================
debian/changelog
=====================================
@@ -1,3 +1,10 @@
+jakarta-validation-api (3.0.0-1) unstable; urgency=medium
+
+  * Team upload.
+  * New upstream release
+
+ -- Emmanuel Bourg <ebourg at apache.org>  Sun, 26 Jul 2020 17:21:44 +0200
+
 jakarta-validation-api (3.0.0~M1-1) unstable; urgency=medium
 
   * Initial release (Closes: #962933)


=====================================
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:bean-validation-dev at eclipse.org">bean-validation-dev at eclipse.org</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/-/compare/8e777b16199bc609e8a9de96d9d49020fd425f88...09db243a64c09e203a5307af5a4f80457a936c00

-- 
View it on GitLab: https://salsa.debian.org/java-team/jakarta-validation-api/-/compare/8e777b16199bc609e8a9de96d9d49020fd425f88...09db243a64c09e203a5307af5a4f80457a936c00
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-commits/attachments/20200726/da6c62b3/attachment.html>


More information about the pkg-java-commits mailing list