Romain Manni-Bucau [Mon, 16 May 2022 06:53:12 +0000 (08:53 +0200)]
adding a test showing the PR review comment and why current exception handling is not yet release ready
Romain Manni-Bucau [Mon, 16 May 2022 06:42:33 +0000 (08:42 +0200)]
Merge pull request #91 from dblevins/exception-message-improvements
Exception message improvements
David Blevins [Sun, 15 May 2022 21:27:30 +0000 (14:27 -0700)]
Prevent recursive wrapping
David Blevins [Fri, 13 May 2022 18:06:37 +0000 (11:06 -0700)]
Add Wildcard and GenericArray handling to ExceptionMessages.simpleName
Romain Manni-Bucau [Thu, 12 May 2022 15:35:09 +0000 (17:35 +0200)]
support jakarta classifier for jsonlogic module
David Blevins [Mon, 9 May 2022 08:04:27 +0000 (01:04 -0700)]
JOHNZON-370 Deserialization Exception message tests for Mapper API
David Blevins [Mon, 9 May 2022 06:19:03 +0000 (23:19 -0700)]
Use ExceptionAsserts
David Blevins [Mon, 9 May 2022 03:36:57 +0000 (20:36 -0700)]
JOHNZON-378 JsonbCreator constructor and factory method exceptions tests
David Blevins [Mon, 9 May 2022 03:07:54 +0000 (20:07 -0700)]
JOHNZON-379 & JOHNZON-380 Jsonb{De}Serializer methods and constructor
David Blevins [Sun, 8 May 2022 22:18:36 +0000 (15:18 -0700)]
JOHNZON-377 Jsonb bean getter and constructor exception tests
David Blevins [Sun, 8 May 2022 22:12:34 +0000 (15:12 -0700)]
JOHNZON-377 Jsonb bean setter user exceptions test
David Blevins [Sun, 8 May 2022 21:52:45 +0000 (14:52 -0700)]
JOHNZON-381 JsonbAdapter methods and constructor exceptions tests
David Blevins [Sun, 8 May 2022 20:03:06 +0000 (13:03 -0700)]
JOHNZON-375 Mapper API Converter methods and constructor exceptions tests
David Blevins [Sun, 8 May 2022 20:01:35 +0000 (13:01 -0700)]
JOHNZON-374 Mapper API Adapter method exception tests
David Blevins [Sat, 7 May 2022 21:09:26 +0000 (14:09 -0700)]
JOHNZON-382 Diagnose and guide users on invalid bean constructors
JOHNZON-376 Mapper API Bean constructor exceptions tests
David Blevins [Sat, 7 May 2022 16:38:10 +0000 (09:38 -0700)]
JOHNZON-376 Mapper API Bean getter user exceptions tests
David Blevins [Sat, 7 May 2022 16:27:06 +0000 (09:27 -0700)]
JOHNZON-376 Mapper API Bean setter user exceptions tests
David Blevins [Tue, 3 May 2022 17:26:25 +0000 (10:26 -0700)]
Add final to static-utility class
David Blevins [Tue, 3 May 2022 02:05:09 +0000 (19:05 -0700)]
JOHNZON-371 NullPointerException thrown when null value present in primitive arrays
David Blevins [Tue, 3 May 2022 01:33:06 +0000 (18:33 -0700)]
Test cases for all primitive arrays show handling as-is
Prior to fixing JOHNZON-371
David Blevins [Tue, 3 May 2022 00:00:19 +0000 (17:00 -0700)]
Align wording in "Can't map JSON Object" exception with other exceptions
David Blevins [Mon, 2 May 2022 23:40:38 +0000 (16:40 -0700)]
JOHNZON-372 Entire json value serialized in exception
David Blevins [Mon, 2 May 2022 23:34:09 +0000 (16:34 -0700)]
JOHNZON-372 Entire json value serialized in exception
David Blevins [Mon, 2 May 2022 23:15:41 +0000 (16:15 -0700)]
JOHNZON-372 Entire json value serialized in exception
David Blevins [Mon, 2 May 2022 22:46:59 +0000 (15:46 -0700)]
JOHNZON-370 Include class, property, type and json value in mapping exceptions
David Blevins [Sun, 1 May 2022 16:59:54 +0000 (09:59 -0700)]
Merge branch 'master' of github.com:apache/johnzon into exception-messages
David Blevins [Sat, 30 Apr 2022 21:23:05 +0000 (14:23 -0700)]
Catalog of deserialization error messages as they are now
Mark Struberg [Sat, 30 Apr 2022 11:36:27 +0000 (13:36 +0200)]
[maven-release-plugin] prepare for next development iteration
Mark Struberg [Sat, 30 Apr 2022 11:36:17 +0000 (13:36 +0200)]
[maven-release-plugin] prepare release v1.2.18
Romain Manni-Bucau [Thu, 28 Apr 2022 08:06:49 +0000 (10:06 +0200)]
ensure johnzon-core is not used in mapper/jsonb + minor fixed on Snippet buffering
Romain Manni-Bucau [Thu, 28 Apr 2022 08:05:05 +0000 (10:05 +0200)]
Merge pull request #84 from dblevins/improved-exception-message
Show a chunk of json when mapping the object fails
Romain Manni-Bucau [Thu, 28 Apr 2022 07:54:05 +0000 (09:54 +0200)]
fix the johnzon-core dependency in mapper/jsonb module + use BoundedOutputStreamWriter in Snippet
David Blevins [Thu, 28 Apr 2022 07:29:31 +0000 (00:29 -0700)]
JOHNZON-367 Incorporate PR feedback
David Blevins [Thu, 28 Apr 2022 07:21:27 +0000 (00:21 -0700)]
Merge branch 'master' of github.com:apache/johnzon into improved-exception-message
Romain Manni-Bucau [Thu, 28 Apr 2022 07:12:25 +0000 (09:12 +0200)]
rename Buffered to IODescriptor
Romain Manni-Bucau [Thu, 28 Apr 2022 07:09:05 +0000 (09:09 +0200)]
rebase
David Blevins [Tue, 26 Apr 2022 07:24:35 +0000 (00:24 -0700)]
JOHNZON-367 Reduce calls to flush() to the bare minimum
Call flush only before snippet.terminate() and snippet.get()
Reduce calls to snippet.terminate() to only what is needed
David Blevins [Tue, 26 Apr 2022 03:44:31 +0000 (20:44 -0700)]
JOHNZON-367 Allow true, false and null json constants to be trimmed
Not my preference, but implementing in the hope of compromise
David Blevins [Sun, 24 Apr 2022 19:20:27 +0000 (12:20 -0700)]
JOHNZON-367 Fix Snippet buffering issues and expand tests
David Blevins [Fri, 22 Apr 2022 20:00:44 +0000 (13:00 -0700)]
JOHNZON-367 Tests that johnzon.snippetMaxLength works as expected
David Blevins [Thu, 21 Apr 2022 21:21:21 +0000 (14:21 -0700)]
JOHNZON-367 Allow Snippet size to be configurable (via @rmannibucau)
All code written by Romain Manni-Bucau
David Blevins [Thu, 21 Apr 2022 21:02:52 +0000 (14:02 -0700)]
JOHNZON-367 Snippet accepts a JsonGeneratorFactory and is reusable
David Blevins [Thu, 21 Apr 2022 19:59:29 +0000 (12:59 -0700)]
JOHNZON-367 Show a chunk of json when mapping the object fails
Romain Manni-Bucau [Wed, 27 Apr 2022 07:48:53 +0000 (09:48 +0200)]
[JOHNZON-369] adding org.apache.johnzon.boundedoutputstreamwriter support
Romain Manni-Bucau [Wed, 27 Apr 2022 07:05:04 +0000 (09:05 +0200)]
[JOHNZON-368] ensure JsonGeneratorFactory respects the configured encoding
David Blevins [Tue, 26 Apr 2022 16:54:16 +0000 (09:54 -0700)]
JOHNZON-367 Optimize buffering when new Buffered interface is supported
David Blevins [Tue, 26 Apr 2022 07:24:35 +0000 (00:24 -0700)]
JOHNZON-367 Reduce calls to flush() to the bare minimum
Call flush only before snippet.terminate() and snippet.get()
Reduce calls to snippet.terminate() to only what is needed
David Blevins [Tue, 26 Apr 2022 03:44:31 +0000 (20:44 -0700)]
JOHNZON-367 Allow true, false and null json constants to be trimmed
Not my preference, but implementing in the hope of compromise
Romain Manni-Bucau [Mon, 25 Apr 2022 07:03:47 +0000 (09:03 +0200)]
upgrading to junit 4.13.1
Romain Manni-Bucau [Mon, 25 Apr 2022 07:02:24 +0000 (09:02 +0200)]
simplifying some mappe dependencies, no main code change
David Blevins [Sun, 24 Apr 2022 19:20:27 +0000 (12:20 -0700)]
JOHNZON-367 Fix Snippet buffering issues and expand tests
David Blevins [Fri, 22 Apr 2022 20:00:44 +0000 (13:00 -0700)]
JOHNZON-367 Tests that johnzon.snippetMaxLength works as expected
David Blevins [Thu, 21 Apr 2022 21:21:21 +0000 (14:21 -0700)]
JOHNZON-367 Allow Snippet size to be configurable (via @rmannibucau)
All code written by Romain Manni-Bucau
David Blevins [Thu, 21 Apr 2022 21:02:52 +0000 (14:02 -0700)]
JOHNZON-367 Snippet accepts a JsonGeneratorFactory and is reusable
David Blevins [Thu, 21 Apr 2022 19:59:29 +0000 (12:59 -0700)]
JOHNZON-367 Show a chunk of json when mapping the object fails
Mark Struberg [Wed, 13 Apr 2022 06:53:08 +0000 (08:53 +0200)]
[maven-release-plugin] prepare for next development iteration
Mark Struberg [Wed, 13 Apr 2022 06:52:58 +0000 (08:52 +0200)]
[maven-release-plugin] prepare release v1.2.17
Mark Struberg [Tue, 12 Apr 2022 09:00:07 +0000 (11:00 +0200)]
JOHNZON-364 remove unused methods
Mark Struberg [Tue, 12 Apr 2022 08:53:35 +0000 (10:53 +0200)]
JOHNZON-264 move introspection stuff to new BeanUtil
Mark Struberg [Tue, 12 Apr 2022 08:03:36 +0000 (10:03 +0200)]
JOHNZON-364 use reflection to avoid caches.
Romain Manni-Bucau [Sun, 10 Apr 2022 18:06:50 +0000 (20:06 +0200)]
fix DefaultPropertyVisibilityStrategy to respect the spec, ensure we clean the cache + fix backward compatibility of the FieldAndMethodAccessMode
Mark Struberg [Fri, 25 Feb 2022 14:11:03 +0000 (15:11 +0100)]
JOHNZON-364 JsonbVisibility always wins over default rules
This partially reverts JOHNZON-250 which did remove fields as readers if a getter exists.
Sadly this also did remove the option to keep those fields via JsonbVisibility.
Jean-Louis Monteiro [Tue, 22 Feb 2022 11:23:16 +0000 (12:23 +0100)]
Add also a relocation for JAX-RS APIs
Signed-off-by: Jean-Louis Monteiro <jlmonteiro@tomitribe.com>
Raymond Augé [Sun, 20 Feb 2022 17:32:14 +0000 (12:32 -0500)]
JOHNZON-359 Fix lost OSGi metadata (#78)
Reverts the packaging change from
b221d9db923c142afcddde056abd9301acbf9af1
Signed-off-by: Raymond Augé <rotty3000@apache.org>
Raymond Augé [Sun, 20 Feb 2022 17:30:54 +0000 (12:30 -0500)]
JOHNZON-362 johnzon maven plugin tests fail on windows (#81)
Signed-off-by: Raymond Augé <rotty3000@apache.org>
Raymond Augé [Sun, 20 Feb 2022 17:29:55 +0000 (12:29 -0500)]
JOHNZON-361 Johnzon maven plugin generates invalid record classes (#80)
Signed-off-by: Raymond Augé <rotty3000@apache.org>
Raymond Augé [Sun, 20 Feb 2022 17:29:20 +0000 (12:29 -0500)]
JOHNZON-360 Make buildable and testable on Java 17 (#79)
Signed-off-by: Raymond Augé <rotty3000@apache.org>
Romain Manni-Bucau [Tue, 8 Feb 2022 10:15:26 +0000 (11:15 +0100)]
fixing naming of source artifacts on download page
Romain Manni-Bucau [Tue, 8 Feb 2022 10:14:06 +0000 (11:14 +0100)]
source links should point to sources and not bin
Romain Manni-Bucau [Tue, 8 Feb 2022 08:41:05 +0000 (09:41 +0100)]
since only sources are put on dist dont link bin
Romain Manni-Bucau [Tue, 8 Feb 2022 08:29:09 +0000 (09:29 +0100)]
updating downloads
Jean-Louis Monteiro [Thu, 3 Feb 2022 10:26:44 +0000 (11:26 +0100)]
Merge remote-tracking branch 'origin/master' into master
Romain Manni-Bucau [Thu, 3 Feb 2022 09:28:31 +0000 (10:28 +0100)]
[maven-release-plugin] prepare for next development iteration
Romain Manni-Bucau [Thu, 3 Feb 2022 09:28:21 +0000 (10:28 +0100)]
[maven-release-plugin] prepare release v1.2.16
Romain Manni-Bucau [Tue, 25 Jan 2022 16:17:59 +0000 (17:17 +0100)]
[JOHNZON-358][JOHNZON-357] enhance (de)serializer support on list/map types
Arne Limburg [Wed, 24 Nov 2021 07:41:44 +0000 (08:41 +0100)]
[JOHNZON-355]: Find class level Adapter even when used in collection. (#76)
Romain Manni-Bucau [Tue, 23 Nov 2021 10:19:11 +0000 (11:19 +0100)]
[JOHNZON-354] reverse johnzon.failOnMissingCreatorValues default and support jsonb.creator-parameters-required prop
Jean-Louis Monteiro [Tue, 12 Oct 2021 20:56:49 +0000 (22:56 +0200)]
[maven-release-plugin] prepare for next development iteration
Jean-Louis Monteiro [Tue, 12 Oct 2021 20:56:39 +0000 (22:56 +0200)]
[maven-release-plugin] prepare release v1.2.15
Romain Manni-Bucau [Fri, 8 Oct 2021 08:53:14 +0000 (10:53 +0200)]
JOHNZON-353 enum jsonschema validation nulable fix
Romain Manni-Bucau [Thu, 30 Sep 2021 17:54:26 +0000 (19:54 +0200)]
fixing some download links
Jean-Louis Monteiro [Tue, 21 Sep 2021 09:24:48 +0000 (11:24 +0200)]
Checkstyle
Signed-off-by: Jean-Louis Monteiro <jlmonteiro@tomitribe.com>
Jean-Louis Monteiro [Tue, 21 Sep 2021 09:20:10 +0000 (11:20 +0200)]
JOHNZON-351 support collection raw classes cast to Type in JSON-B
Improve tests and case coverage
Signed-off-by: Jean-Louis Monteiro <jlmonteiro@tomitribe.com>
Romain Manni-Bucau [Tue, 21 Sep 2021 08:58:09 +0000 (10:58 +0200)]
JOHNZON-351 support collection raw classes cast to Type in JSON-B
Romain Manni-Bucau [Mon, 5 Jul 2021 06:55:01 +0000 (08:55 +0200)]
download 1.2.14
Csaba Varga [Sun, 11 Jul 2021 16:09:29 +0000 (18:09 +0200)]
True object and array streaming (#74)
* Add tests for getArrayStream() and getObjectStream()
* Implement lazy parsing for getArrayStream() and getObjectStream()
Now these methods should behave in the spirit of the specification, only
keeping the latest element in memory and parsing more data only as
necessary.
* Remove redundant else's
* Extract anonymous spliterator implementations into static classes
* Verify the event type we get in getObjectStream()
* Add unit tests for parse errors in getArrayStream and getObjectStream
* Make sure to close all parsers
Romain Manni-Bucau [Thu, 1 Jul 2021 05:30:14 +0000 (07:30 +0200)]
[maven-release-plugin] prepare for next development iteration
Romain Manni-Bucau [Thu, 1 Jul 2021 05:30:04 +0000 (07:30 +0200)]
[maven-release-plugin] prepare release v1.2.14
Romain Manni-Bucau [Tue, 29 Jun 2021 08:35:06 +0000 (10:35 +0200)]
[JOHNZON-350] record support in example to model mojo
Romain Manni-Bucau [Sun, 20 Jun 2021 14:28:42 +0000 (16:28 +0200)]
[JOHNZON-349] trying to not do reflection until we know we can, dedup annotation case
Romain Manni-Bucau [Sun, 20 Jun 2021 14:27:23 +0000 (16:27 +0200)]
[JOHNZON-348] jsonb annotations support on records
Romain Manni-Bucau [Sun, 6 Jun 2021 16:47:09 +0000 (18:47 +0200)]
[JOHNZON-347] some adjustment for recent java versions, need some more love to be faster
Romain Manni-Bucau [Sun, 6 Jun 2021 10:23:53 +0000 (12:23 +0200)]
updating download page
Romain Manni-Bucau [Wed, 2 Jun 2021 15:45:31 +0000 (17:45 +0200)]
[maven-release-plugin] prepare for next development iteration
Romain Manni-Bucau [Wed, 2 Jun 2021 15:45:21 +0000 (17:45 +0200)]
[maven-release-plugin] prepare release v1.2.13
Romain Manni-Bucau [Wed, 2 Jun 2021 14:54:36 +0000 (16:54 +0200)]
[JOHNZON-346] avoid array out of bound exception when string gets an escaped character
Romain Manni-Bucau [Fri, 21 May 2021 08:04:43 +0000 (10:04 +0200)]
fixing titles
Romain Manni-Bucau [Fri, 21 May 2021 07:57:56 +0000 (09:57 +0200)]
1.2.12 download page update
Romain Manni-Bucau [Mon, 17 May 2021 12:00:44 +0000 (14:00 +0200)]
[maven-release-plugin] prepare for next development iteration
Romain Manni-Bucau [Mon, 17 May 2021 12:00:34 +0000 (14:00 +0200)]
[maven-release-plugin] prepare release v1.2.12