instance_id
stringlengths
10
65
repo
stringlengths
5
59
pr_number
int64
1
313k
task_type
stringclasses
1 value
base_commit
stringlengths
40
40
review_commit
stringlengths
40
40
title
stringlengths
2
282
body
stringlengths
7
3k
patch
stringlengths
202
204k
n_defects
int64
1
72
n_supported
int64
1
65
n_major
int64
0
32
defects
stringlengths
140
18.8k
certifier_count
int64
Farama-Foundation__Metaworld__120
Farama-Foundation/Metaworld
120
defect
718e4d1bc2b34e0ae3ef6415fb6cbe4afe8ea4b9
c7652f230cf93b603790426f49c13d8e9351b00d
Split policy tests up to skip some and speed up CI
I've split up the scripted policy tests into those with noise and those without noise. Those categories are subdivided into those where the policy version matches the env version, and those where the opposite is true (V2 policy in V1 environment). - V2 policy in V1 env, no noise: *skip* - V2 policy in V1 env, noise...
diff --git a/Makefile b/Makefile index 2927d238c..158ea6766 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,7 @@ check-memory: run @echo "Profiling memory usage..." ci-job: - pytest -n 0 --cov=metaworld -v -m 'not large' + pytest -n 0 --cov=metaworld -v -m 'not large and not deprecated' coverage xml # bash <...
3
1
0
[{"id": "G0", "claim": "Instead of combining all test cases into one array passed to a single parameterized test with per-case marks, the PR should use four separate parameterized test cases, which ryanjulian says would be easier to read and maintain.", "category": "maintainability", "verdict": "uncertain", "priority":...
null
Farama-Foundation__Metaworld__127
Farama-Foundation/Metaworld
127
defect
f0888ecedac6c19c092fc95e884051b51ff718bd
c60fa27c8b7110afdb08047d1fcaef3757ff2c96
Created Reach wall v2 policy
* Created new SawyerReachWallV2 environment (with assets file) with new observation space with vector to end goal. Reach * Wall is now split from Reach Push Pick Place Wall. Added Scripted Policy for Reach Wall V2. Policy succeeds at an ~98% success rate with action_noise_pct=0.0, 0.1 **Note:** copy of old PR due to ...
diff --git a/metaworld/envs/assets/sawyer_xyz/sawyer_reach_wall_v2.xml b/metaworld/envs/assets/sawyer_xyz/sawyer_reach_wall_v2.xml new file mode 100644 index 000000000..396372059 --- /dev/null +++ b/metaworld/envs/assets/sawyer_xyz/sawyer_reach_wall_v2.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="utf-8"?> +<mujo...
2
1
0
[{"id": "G0", "claim": "The new sawyer_reach_wall_v2.xml may not modify anything from the original reach-wall XML, and if so the pull request should use the original XML file instead of adding this copy.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim...
null
Farama-Foundation__Metaworld__128
Farama-Foundation/Metaworld
128
defect
f0888ecedac6c19c092fc95e884051b51ff718bd
6a4b1a0c9e817cea2b7229f1c92da387ac7124ba
Create Push wall v2 policy
* Created new SawyerPushWallV2 environment (with assets file) with new observation space with the end goal included in it. Push Wall is now split from Reach Push Pick Place Wall. * Reasoning behind this addition is explained in PR #95 * Added Scripted Policy for Push Wall V2. Policy succeeds at an ~85% success ra...
diff --git a/metaworld/envs/assets/sawyer_xyz/sawyer_push_wall_v2.xml b/metaworld/envs/assets/sawyer_xyz/sawyer_push_wall_v2.xml new file mode 100644 index 000000000..71ed43d05 --- /dev/null +++ b/metaworld/envs/assets/sawyer_xyz/sawyer_push_wall_v2.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="utf-8"?> +<mujoco>...
2
1
0
[{"id": "G0", "claim": "The push-wall-v2 scripted policy's low success rate (~0.8 with and without noise as recorded in the test) could be improved and the recorded bounds tightened.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The SawyerPushWallE...
null
Farama-Foundation__Metaworld__139
Farama-Foundation/Metaworld
139
defect
6f1a94f7b540045e81cf8d2fb758230b7dad5bdc
567c53f0bbbcf5c075ee9756e7677e96320ed4df
Add Dial Turn V1 Scripted Policy
## Add Dial Turn V1 Scripted Policy * policy succeeds with a ~98% success rate with no noise and a 85% success rate with 0.1 noise_action_pct * policy uses only dial position and hand position (has no goal position in observation)
diff --git a/metaworld/policies/__init__.py b/metaworld/policies/__init__.py index 61eca49bf..4a94bd2cb 100644 --- a/metaworld/policies/__init__.py +++ b/metaworld/policies/__init__.py @@ -27,6 +27,7 @@ from metaworld.policies.sawyer_reach_wall_v2_policy import SawyerReachWallV2Policy from metaworld.policies.sawyer_p...
1
1
1
[{"id": "G0", "claim": "The policy's _parse_obs should be updated to use the new observation space, as it does not fully parse the new observation.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Farama-Foundation__Metaworld__172
Farama-Foundation/Metaworld
172
defect
7b9f3002e34b54b6af7503c32af53b0120293d98
3a4ba284d9cac4691276d4f07572605cb1b35a85
Scripted policy for bin picking
Finished up @avnishn's scripted policy for bin picking
diff --git a/metaworld/envs/mujoco/sawyer_xyz/sawyer_bin_picking.py b/metaworld/envs/mujoco/sawyer_xyz/sawyer_bin_picking.py index c95f95790..4c241125f 100644 --- a/metaworld/envs/mujoco/sawyer_xyz/sawyer_bin_picking.py +++ b/metaworld/envs/mujoco/sawyer_xyz/sawyer_bin_picking.py @@ -11,8 +11,8 @@ def __init__(self): ...
2
2
1
[{"id": "G0", "claim": "Changing the v1 bin picking environment's max_path_length and obj_low/obj_high in place means the pull request should add a v2 environment instead of modifying the v1 one.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The obj_and...
null
Farama-Foundation__Metaworld__215
Farama-Foundation/Metaworld
215
defect
b01e60d25b270e6edd98f829df221f7531a103fe
0461266dea0d43f236de5678707db714745ae3f1
Updated coffee envs to Byron's XML
Closes #180 Coffee pull success rate dropped a lot in the w/noise test case, but I'm not sure what to do about that other than fiddle with the magic numbers a lot more. It may be better to just merge this and revisit low-success-rate envs/policies later on (there are others that could use some improvement, besides j...
diff --git a/metaworld/envs/assets_updated/objects/assets/coffeemachine.xml b/metaworld/envs/assets_updated/objects/assets/coffeemachine.xml index 5b9a1857c..83f5810db 100644 --- a/metaworld/envs/assets_updated/objects/assets/coffeemachine.xml +++ b/metaworld/envs/assets_updated/objects/assets/coffeemachine.xml @@ -16,...
1
1
1
[{"id": "G0", "claim": "The pull request may not be worth merging since the new coffee-pull-v2 env's success rate (.51) is significantly reduced compared to coffee-pull-v1's (.95).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Farama-Foundation__Metaworld__64
Farama-Foundation/Metaworld
64
defect
bff69861b8975456b33dcaa6eb39715bf4b08606
5576d5f1d0306f5c5df225a0d3c70f0b81cb7476
Better support for meta-RL training
* Add new class methods to construct a MultiClassMultiTaskEnv with only one task * Introduce TaskSpec as an opaque container for task information. User should call sample_task(n) to obtain a list of TaskSpec and pass to set_task(), without the need to know what is inside TaskSpec.
diff --git a/metaworld/benchmarks/base.py b/metaworld/benchmarks/base.py index 484ccaec0..fffbfbe7c 100644 --- a/metaworld/benchmarks/base.py +++ b/metaworld/benchmarks/base.py @@ -8,3 +8,7 @@ def get_train_tasks(cls, sample_all=False): @classmethod def get_test_tasks(cls, sample_all=False): return c...
3
3
2
[{"id": "G0", "claim": "Splitting the task-name check into an assert plus a bare format-expression string does not work (the string is never raised, and an invalid name dies with a bare AssertionError); use an `if` with `raise ValueError` instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "...
null
Farama-Foundation__Metaworld__72
Farama-Foundation/Metaworld
72
defect
73e1966e8a9b7e67cfc0ec14df68e61f16f39678
3ffb567a49e3ea5331e803665bb1b4f921124b19
Static task ids
* Ensure that static task ID is maintained. After a call to discretize envs was made, the static task_id would be ignored by the class, and task_envs would be assigned a new random task_id Also addresses #71 * Make naming of envs standard across benchmarks - removes some typos...
diff --git a/metaworld/envs/mujoco/env_dict.py b/metaworld/envs/mujoco/env_dict.py index 8b82bc5fc..8bdc86b2a 100644 --- a/metaworld/envs/mujoco/env_dict.py +++ b/metaworld/envs/mujoco/env_dict.py @@ -1,6 +1,5 @@ import numpy as np - from metaworld.envs.mujoco.sawyer_xyz.sawyer_reach_push_pick_place import SawyerRe...
3
2
0
[{"id": "G0", "claim": "The hardcoded `_NUM_METAWORLD_ENVS = 50` duplicates information already available as `len(_static_task_ids)` and should be derived instead of maintained by hand.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Replace the ...
null
Farama-Foundation__Metaworld__92
Farama-Foundation/Metaworld
92
defect
2f228c261c9592dca1f3b8b89fd633d045862af0
d02fbf9b6a441a85deec3af9149d29ea051d6a9c
Scripted policies for drawer, door envs
Hard-coded policies for the sawyer door and drawer environments. By further tuning the `p` parameter of the `move` function, I was able to make the door-close policy work with the original DoorCloseV1 environment. As such, the DoorCloseV2 environment is actually not necessary. _Why did I think it needed to be change...
diff --git a/metaworld/envs/mujoco/sawyer_xyz/sawyer_door_close.py b/metaworld/envs/mujoco/sawyer_xyz/sawyer_door_close.py index fc1416264..125591260 100644 --- a/metaworld/envs/mujoco/sawyer_xyz/sawyer_door_close.py +++ b/metaworld/envs/mujoco/sawyer_xyz/sawyer_door_close.py @@ -17,6 +17,8 @@ def __init__(self, random...
12
12
0
[{"id": "G0", "claim": "Add a comment under each if statement in the door-open policy describing what the conditional case achieves (go to door, grasp door, close door, etc.).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Name the policy modules ...
null
Farama-Foundation__PettingZoo__1105
Farama-Foundation/PettingZoo
1,105
defect
6c33934d72555531538704c632378b47ba35f983
8506bdca2b5c53f661d2fbe67d3236bf949bbc34
Add multi-episode wrapper for AEC and parallel envs
# Description Requested by @elliottower. This basically allows the wrapping of either an AEC or Parallel env into an environment which runs for multiple episodes before truncating. When there are no more valid agents in the underlying environment, the environment is automatically reset. When this happens, the `o...
diff --git a/pettingzoo/utils/env.py b/pettingzoo/utils/env.py index 3889ee01e..c74af4370 100644 --- a/pettingzoo/utils/env.py +++ b/pettingzoo/utils/env.py @@ -73,7 +73,6 @@ def reset( """Resets the environment to a starting state.""" raise NotImplementedError - # TODO: Remove `Optional` type be...
1
1
0
[{"id": "G0", "claim": "Removing the `# TODO: Remove `Optional` type below` note may be premature, since there may have been a reason `observe` returns `None`, and the code should at least be type hinted to show that an `ObsType` is intended to be returned.", "category": "documentation", "verdict": "supported", "priori...
null
Farama-Foundation__PettingZoo__1192
Farama-Foundation/PettingZoo
1,192
defect
b19c02c8734921e4478c53fc994cb344d5631de2
4f35a22a364233c1eb6b6d9230db7432b9ebface
Update the TicTacToe environment
# Description Update the TicTacToe environment to v4 Major changes: * ~~Fix termination handling to work with stable baselines3. This now trains as expected with the SB3 PPO code~~ * Rewrite of underlying board code * Add test functions for the underlying board code * ~~Bump version to 4~~ Minor changes: ...
diff --git a/docs/api/wrappers/pz_wrappers.md b/docs/api/wrappers/pz_wrappers.md index d3eb21c38..08eba7bd4 100644 --- a/docs/api/wrappers/pz_wrappers.md +++ b/docs/api/wrappers/pz_wrappers.md @@ -65,8 +65,8 @@ You can apply these wrappers to your environment in a similar manner to the belo To wrap an AEC environment:...
3
2
1
[{"id": "G0", "claim": "The raw env should handle illegal moves the same way other envs do (terminate illegal wrapper / the conventional mechanism) instead of the sloppy custom BadTicTacToeMoveException approach.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cla...
null
Farama-Foundation__PettingZoo__1206
Farama-Foundation/PettingZoo
1,206
defect
98e8c206daca7b45e1b61785d245628872c149b6
63543af211e3c43ad1959e38dbfdc94271800eec
TerminateIllegalWrapper fix
# Description Fix bug in TerminateIllegalWrapper that set values on the wrapper instead of the env. Fixes #1176 ## Type of change - Bug fix (non-breaking change which fixes an issue) # Checklist: - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `pre-commit run --all-files` (see...
diff --git a/pettingzoo/utils/wrappers/terminate_illegal.py b/pettingzoo/utils/wrappers/terminate_illegal.py index a49d9a0be..79f95504a 100644 --- a/pettingzoo/utils/wrappers/terminate_illegal.py +++ b/pettingzoo/utils/wrappers/terminate_illegal.py @@ -1,4 +1,3 @@ -# pyright reportGeneralTypeIssues=false from __future...
4
1
0
[{"id": "G0", "claim": "The removed `assert self._prev_obs is not None` should be kept, or the code should check that the observation exists before checking its value (the reviewer concedes the assertion would fail either way).", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"},...
null
Farama-Foundation__PettingZoo__559
Farama-Foundation/PettingZoo
559
defect
968b492b250a935f9a43e9a3f110bc8de280a4cc
1d65107adffc40007b7655876673b97308e4976d
Turn based wrapper
This probably needs a thorough review by @benblack769 but it passes the (modified) parallel API test. The reason for creating the turn_based_to_parallel wrapper is because some applications require the parallel API for simultaneous games, and would preferably also be able to use the same API for classic games. Howe...
diff --git a/pettingzoo/butterfly/cooperative_pong/cake_paddle.py b/pettingzoo/butterfly/cooperative_pong/cake_paddle.py index b093484d2..29c757ee0 100644 --- a/pettingzoo/butterfly/cooperative_pong/cake_paddle.py +++ b/pettingzoo/butterfly/cooperative_pong/cake_paddle.py @@ -80,7 +80,7 @@ def process_collision(self, b...
2
2
2
[{"id": "G0", "claim": "The `actions == {}` special case in turn_based_to_parallel_wrapper.step() should not be needed and should be removed.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The step() loop overwrites each agent's cumulative reward with th...
null
Farama-Foundation__PettingZoo__597
Farama-Foundation/PettingZoo
597
defect
aec87907777e0e62652d499b3ac96f680acf35ad
d36ec13e684ceeebc492011f143b68550fe9b931
Fix ball clipping through nose of cake paddle; rework ball motion and collision handling; bump cooperative_pong to v5
The cake paddle collision detection function encloses horizontal and vertical collisions in the same if-else statement such that some vertical collisions went undetected if the ball had nonzero horizontal velocity. This PR fixes this issue and bumps cooperative_pong to v5.
diff --git a/pettingzoo/butterfly/cooperative_pong/ball.py b/pettingzoo/butterfly/cooperative_pong/ball.py new file mode 100644 index 000000000..6ea7bf3f5 --- /dev/null +++ b/pettingzoo/butterfly/cooperative_pong/ball.py @@ -0,0 +1,65 @@ +import numpy as np +import pygame + + +def get_small_random_value(randomizer): + ...
7
4
1
[{"id": "G0", "claim": "RENDER_RATIO should not be defined for the whole environment in cake_paddle.py but moved to the environment file cooperative_pong.py.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The spurious manual_control import in ...
null
Farama-Foundation__PettingZoo__602
Farama-Foundation/PettingZoo
602
defect
7034d3c0fa98bb10dcf118973420d51ae6401936
64a4be8d6ee81642742af79d4fda20f0749f7bde
Cleanup and streamlining of KAZ
This PR is a rather comprehensive cleanup and streamlining of the KAZ repo, several existing hidden bugs are also cleaned up. Due to the heavy nature of refactoring that this has gone through, it is uncertain if new bugs have popped up, though every effort was made to assert that this is not the case. Note: This PR ...
diff --git a/docs/butterfly/knights_archers_zombies.md b/docs/butterfly/knights_archers_zombies.md index 8a838290d..003fd274f 100644 --- a/docs/butterfly/knights_archers_zombies.md +++ b/docs/butterfly/knights_archers_zombies.md @@ -11,7 +11,7 @@ observation-values: "(0, 255)" state-shape: "(720, 1280, 3)" state-valu...
5
3
3
[{"id": "G0", "claim": "The pull request changes the Knights Archers Zombies environment code without bumping the environment version, and jkterry1 asks that it bump the environment version.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The pull request...
null
Farama-Foundation__PettingZoo__604
Farama-Foundation/PettingZoo
604
defect
aec87907777e0e62652d499b3ac96f680acf35ad
57cff42d3dbfc7fae03e0dd99b51b92737f0642e
Renames as per #574
Rename from_parallel and to_parallel to parallel2aec and aec2parallel respectively. This addressed #574.
diff --git a/docs/_includes/code/aec_rps.py b/docs/_includes/code/aec_rps.py index e395fa9c5..6019d68ca 100644 --- a/docs/_includes/code/aec_rps.py +++ b/docs/_includes/code/aec_rps.py @@ -37,7 +37,7 @@ def env(): # this wrapper helps error handling for discrete action spaces env = wrappers.AssertOutOfBoundsW...
1
1
0
[{"id": "G0", "claim": "The legacy to_parallel/from_parallel shims should raise a deprecation error or, at minimum, an explicit deprecation warning instead of silently wrapping the renamed functions.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Farama-Foundation__PettingZoo__618
Farama-Foundation/PettingZoo
618
defect
c34cfe38d469e56be43a03f37347bc25ba65129b
419e66645a31b7555032845fd95ee0f4ccc9a6b6
Reopen Vector State KAZ
# Vectorizable State Space to KAZ This adds a vectorizable state to KAZ, pass `vector_state=True` as a kwarg to the env.. The observation is an (N+1)x5 array for each agent, where `N = num_archers + num_knights + num_swords + max_arrows + max_zombies`. > Note that `num_swords = num_knights` ## Index Breakdo...
diff --git a/docs/_includes/services.html b/docs/_includes/services.html index 59212b812..79d4903ec 100644 --- a/docs/_includes/services.html +++ b/docs/_includes/services.html @@ -30,8 +30,8 @@ <h4 class="service-heading">{{ service.title | markdownify }}</h4> <div class="service-code"> <pre> ...
11
9
6
[{"id": "G0", "claim": "The new vector_state argument should be a True/False flag rather than None.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The magnitude normalization applied to relative positions should also happen when state() is called.", "cat...
null
Farama-Foundation__PettingZoo__653
Farama-Foundation/PettingZoo
653
defect
b839259e961798cfc23b6f82c6ba0898b55cda60
9367e8dca0bd98dad6e40cd8053fef2aac5e303a
filter action settings of dead agents and remove group handle swap
Closes #542 The results can be confirmed by running the script in there. Two main issues: 1. Teams (e.g. blue, red) not matching up with the group handles in magent. For example, the second team created would have the 0'th index handle in magent but the `magent_env` code assumes they are in order. As a result, a...
diff --git a/pettingzoo/magent/battle_v3.py b/pettingzoo/magent/battle_v3.py index 4ca8091f5..7f6ac2652 100644 --- a/pettingzoo/magent/battle_v3.py +++ b/pettingzoo/magent/battle_v3.py @@ -1,14 +1,10 @@ import math -import warnings import magent import numpy as np -from gym.spaces import Box, Discrete from gym.ut...
4
1
0
[{"id": "G0", "claim": "The added break when no live agents remain may not be needed: it fixes the tiger_deer_v3 failure (reset at cycle 100) whose cause the author could not explain and suspects is linked to this PR no longer allowing mismatching action settings, and he asks whether to keep investigating tiger_deer as...
null
Farama-Foundation__PettingZoo__761
Farama-Foundation/PettingZoo
761
defect
44a579462bc7771cf8ba0f06828a3b5b8295fcb8
d2b05ac7a96bc1c7d5f21d6f01650175fe2b829c
[in progress] Truncation update for mpe
**Summary** - All MPE envs are subclasses of AECEnvs (I'm aware there's a proposal to depreciate AECEnvs for ParallelEnvs) - Hence AECEnvs and corresponding utils have to be refactored - Once done with the above, a naive test ran without issue* - Obviously the tests now failed, and I tried modified them to account ...
diff --git a/pettingzoo/butterfly/knights_archers_zombies/knights_archers_zombies.py b/pettingzoo/butterfly/knights_archers_zombies/knights_archers_zombies.py index a40a565c3..c7e586456 100644 --- a/pettingzoo/butterfly/knights_archers_zombies/knights_archers_zombies.py +++ b/pettingzoo/butterfly/knights_archers_zombie...
7
6
2
[{"id": "G0", "claim": "Merging completion flags with `terminated.items() or truncated.items()` in parallel_api_test only ever inspects one of the two dicts, so truncated agents are never marked finished nor removed from live_agents.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "intro...
null
Farama-Foundation__PettingZoo__946
Farama-Foundation/PettingZoo
946
defect
efbc3a109a2660469232f591310834529b3652e6
cf1cde64a3cddb5ee59066365310b846ea126f69
Update testing
# Description Splitting https://github.com/Farama-Foundation/PettingZoo/pull/933 into separate PRs for simplicity. This PR rewrites the seed test to actually check that environment rollouts are the same, matching gymnasium. It also updates the API test to handle dict observations, and fixes the variable env test ...
diff --git a/pettingzoo/classic/rlcard_envs/texas_holdem_no_limit.py b/pettingzoo/classic/rlcard_envs/texas_holdem_no_limit.py index cf082f1be..298d60517 100644 --- a/pettingzoo/classic/rlcard_envs/texas_holdem_no_limit.py +++ b/pettingzoo/classic/rlcard_envs/texas_holdem_no_limit.py @@ -151,7 +151,7 @@ def __init__(se...
9
7
2
[{"id": "G0", "claim": "The texas_holdem_no_limit observation space dtype was changed from float64 to float32 without a stated reason, deviating from the convention that all environments use float64.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The reset...
null
Farama-Foundation__PettingZoo__948
Farama-Foundation/PettingZoo
948
defect
efbc3a109a2660469232f591310834529b3652e6
2b76c867b38b1994acec098b39809f7635e2387b
Hanabi update
# Description Splitting https://github.com/Farama-Foundation/PettingZoo/pull/933 into separate PRs for simplicity, see original for comments about changes. Note: now that the PR has been split, this will fail until https://github.com/Farama-Foundation/PettingZoo/pull/946 is merged, as it fixes edge cases with tes...
diff --git a/pettingzoo/classic/hanabi/hanabi.py b/pettingzoo/classic/hanabi/hanabi.py index 08c218cb3..172e7eef1 100644 --- a/pettingzoo/classic/hanabi/hanabi.py +++ b/pettingzoo/classic/hanabi/hanabi.py @@ -9,7 +9,7 @@ This environment is part of the <a href='..'>classic environments</a>. Please read that page fir...
1
1
1
[{"id": "G0", "claim": "The shimmy[openspiel] minimum version specified in the classic extra (>=0.2.1) is inconsistent with the >=0.2.0 used for the same dependency in the all extra below it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Farama-Foundation__SuperSuit__142
Farama-Foundation/SuperSuit
142
defect
0d7e5e20d4e488adae9c9915e7690931ac53de67
fc206a33a33cb57159dad4b58ab0458a0a0aefe2
Frame stack
frame_stack.py modifying (same as stablebaseline3) Original: fill observation stack by zero observations Modify: fill observation stack by the copy of the first observation aec_mock_test modifying (Reflecting modified frame stack)
diff --git a/README.md b/README.md index 07e2a2ee..79638803 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ SuperSuit introduces a collection of small functions which can wrap reinforcement learning environments to do preprocessing ('microwrappers'). -We support Gym for single agent environments and Petting...
5
3
1
[{"id": "G0", "claim": "change_obs_space should pad the indicator channel with np.min(space.high) instead of np.max(space.high), since with a space like high=[1, 255, 255] a max-based pad would fall outside the new observation space (optionally guarding that all space.high are equal in the wrapper init).", "category": ...
null
Farama-Foundation__SuperSuit__233
Farama-Foundation/SuperSuit
233
defect
dc4dc8aa34c2623fc0d0abdb3e53b9f67f468253
ba3299d626cb3629bf0fd4bdb833909388d4c4b1
fix: have access to `terminal_observation` in the infos.
Closes https://github.com/Farama-Foundation/SuperSuit/issues/232. This allows access to `terminal_observation`, which previously wasn't possible when using pettingzoo_env_to_vec_env_v1/MarkovVectorEnv.
diff --git a/supersuit/vector/markov_vector_wrapper.py b/supersuit/vector/markov_vector_wrapper.py index 9ad042e8..ff35d81b 100644 --- a/supersuit/vector/markov_vector_wrapper.py +++ b/supersuit/vector/markov_vector_wrapper.py @@ -91,9 +91,14 @@ def step(self, actions): infs = [infos.get(agent, {}) for agent i...
4
3
3
[{"id": "G0", "claim": "A test should be added to check that the new combining of standard infos and reset infos works correctly, because it is unclear what the change alters in practice.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Concatenating the ...
null
FastFilter__xor_singleheader__68
FastFilter/xor_singleheader
68
defect
55398761ff07ff18596cb9b62c8d618fbe47ebdd
89e1f19d2e4b748a05a50d98259acb0fbe20c0eb
Add pack and unpack of a more compact serialization format
This implements [the idea to more efficiently serialize fuse8 filters by using a bitmask marking non-zero fingerprints](https://github.com/FastFilter/xor_singleheader/issues/67#issuecomment-2599767360). I am also proposing a changed signature of (a new type of) serialization functions: * existing: `void binary_fuse...
diff --git a/include/binaryfusefilter.h b/include/binaryfusefilter.h index 7049f3f..bdd5c63 100644 --- a/include/binaryfusefilter.h +++ b/include/binaryfusefilter.h @@ -7,6 +7,7 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <assert.h> #ifndef XOR_MAX_ITERATIONS // probability of success s...
7
5
2
[{"id": "G0", "claim": "The assert in binary_fuse8_pack should be replaced with an error return such as (size_t)-1, because asserts are compiled away under NDEBUG or abort the program.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "On insufficient s...
null
FastFilter__xorfilter__39
FastFilter/xorfilter
39
defect
02b36be96e0bc2186843e6a27e60d3f73494d454
b794f4f5b656bb3bafd39663c20e6f831fd1fd17
feature: add generics into binary fuse
This allow to use uin8, uint16 and uint32 base with binary fuse. Should be backward compatible with current BinaryFuse8 struct. Only not sure about best go version inside go.mod What about changing Readme to use new style? Like ``` filter, err := xorfilter.NewBinaryFuse[uint16](keys) ```
diff --git a/binaryfusefilter.go b/binaryfusefilter.go index 8b83273..5cb97c1 100644 --- a/binaryfusefilter.go +++ b/binaryfusefilter.go @@ -6,89 +6,26 @@ import ( "math/bits" ) -type BinaryFuse8 struct { +type Unsigned interface { + ~uint8 | ~uint16 | ~uint32 +} + +type BinaryFuse[T Unsigned] struct { Seed ...
2
1
1
[{"id": "G0", "claim": "Consider hiding the new generic NewBinaryFuse interface and exposing only PopulateBinaryFuse8/16/32 publicly to keep the API consistent with what the library already has.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "binaryfusedb...
null
FastForwardTeam__FastForward__39
FastForwardTeam/FastForward
39
defect
b2fd13ac733dbbe131f915cfc2630b3033817a15
4bf45cc1b036f324b22e8cacfaecbe528a7a4d3d
Implement testing system that uses build folder
<details> <summary>NOTICE</summary> I dedicate any and all copyright interest in this software to the public domain. I make this dedication for the benefit of the public at large and to the detriment of my heirs and successors. I intend this dedication to be an overt act of relinquishment in perpetuity of all pres...
diff --git a/.gitignore b/.gitignore index 0e8357871..bd5d6cf3c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ .next_build_id.txt build/ +node_modules +package-lock.json \ No newline at end of file diff --git a/tests/bypasses.json b/tests/bypasses.json new file mode 100644 index 000000000..205df0406 --- /de...
4
4
0
[{"id": "G0", "claim": "The description in tests/package.json contains a typo: \"automaticly\" should be \"automatically\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": ".gitignore should end with a unix EOF, i.e. a trailing newline after the las...
null
FastLED__FastLED__2321
FastLED/FastLED
2,321
defect
cf1d0f62d9f26580533e4a086aa952c42b7f57d0
b19846dcfea7cd9b9575e1842040fdefd68e7862
fix(esp32s3,lcd): force full teardown on cross-driver switch (#2270)
## Summary Fixes #2270. On ESP32-S3 the `LCD_SPI` and `LCD_CLOCKLESS` drivers share the same `LcdSpiPeripheralEsp` singleton. When alternating between the two drivers at runtime, the singleton's fast-path skipped teardown whenever the hardware shape (lanes / clock / transfer size) happened to match, leaving the previo...
diff --git a/src/platforms/esp/32/drivers/lcd_spi/channel_driver_lcd_clockless.cpp.hpp b/src/platforms/esp/32/drivers/lcd_spi/channel_driver_lcd_clockless.cpp.hpp index 45aea73b643..c707a4a1302 100644 --- a/src/platforms/esp/32/drivers/lcd_spi/channel_driver_lcd_clockless.cpp.hpp +++ b/src/platforms/esp/32/drivers/lcd_...
5
5
0
[{"id": "G0", "claim": "Pre-existing gap, flagged for a follow-up rather than this PR: sameShape does not compare clock_gpio, dc_gpio or data_gpios, so a same-owner re-initialize with identical lane count/clock/transfer size but a different GPIO mapping takes the fast path and DMA keeps the previous GPIO routing.", "ca...
null
FastLED__FastLED__2322
FastLED/FastLED
2,322
defect
5e6783eeddfc2e94b4e05768bfdfda7ef33f539c
4074db714e62d8e2d4023b1abea0ca2c3c74407b
fix(audio): silence-gate uses absolute RMS threshold, not adaptive floor (#2253)
## Summary Fixes a pre-existing regression where `Reactive::dominantFrequency` / `magnitude` / `spectralFlux` decayed to zero during **loud** audio. **Root cause:** `NoiseFloorTracker::update()` initializes `mCurrentFloor = combinedLevel` on the first sample. For a steady loud signal the floor immediately matches the...
diff --git a/ci/util/fbuild_compiledb.py b/ci/util/fbuild_compiledb.py index 74ba792c659..cebc96b593f 100644 --- a/ci/util/fbuild_compiledb.py +++ b/ci/util/fbuild_compiledb.py @@ -80,10 +80,13 @@ def ensure_compile_commands( check=True, cwd=str(project_root), ) - except KeyboardIn...
5
5
1
[{"id": "G0", "claim": "The function-local import of handle_keyboard_interrupt inside the except KeyboardInterrupt block of ci/util/fbuild_compiledb.py violates the project's import-ordering guideline and should be hoisted to the top of the file, since no circular-import dependency blocks the move.", "category": "maint...
null
FastLED__FastLED__2362
FastLED/FastLED
2,362
defect
eee316d0eabb9a82bc51194fe0791b3a3994b78e
d1459c5e2268e1653e1ad10800aaf58a60524b5f
feat: modernize non-linear power scaling
This is a refreshed replacement for #1048, rebuilt against current `master`. Problem being addressed: - the original report showed that FastLED's linear power model can underestimate current draw for mixed colors / white on some LEDs, even when single-channel calibration looks correct - that can cause the limiter to m...
diff --git a/src/FastLED.cpp.hpp b/src/FastLED.cpp.hpp index d86608cadc7..d7bb7704cc7 100644 --- a/src/FastLED.cpp.hpp +++ b/src/FastLED.cpp.hpp @@ -428,11 +428,9 @@ fl::u32 CFastLED::getEstimatedPowerInMilliWatts(bool apply_limiter) const { effective_brightness = (*mPPowerFunc)(mScale, mNPowerData); } - // Scal...
6
5
2
[{"id": "G0", "claim": "Build the reverse lookup table as a conservative floor inverse: when the forward table skips values, unmap_power_value(recommended_scaled) can return a brightness that maps above the safe scaled limit, so the limiter can exceed the configured power budget.", "category": "correctness", "verdict":...
null
FastLED__FastLED__2363
FastLED/FastLED
2,363
defect
598d298ae92dd968871fc1883fd5e3b2adbb385f
5fbc1781bedfb4bd62a4e0c5941e732ad626ee8b
Rebase generic palette refactor onto current master
## Summary - rebase the generic-palette refactor from #1036 onto current `master` - centralize duplicated palette behavior behind shared internal palette helpers - preserve the current public palette API while keeping `UpscalePalette(...)` entry points intact - add targeted coverage for 16/32/256 upscaling, progmem con...
diff --git a/src/fl/gfx/colorutils.cpp.hpp b/src/fl/gfx/colorutils.cpp.hpp index 1fcc3e603c0..a88ed3310cb 100644 --- a/src/fl/gfx/colorutils.cpp.hpp +++ b/src/fl/gfx/colorutils.cpp.hpp @@ -1058,50 +1058,64 @@ CHSV ColorFromPalette(const CHSVPalette256 &pal, fl::u8 index, return hsv; } +namespace detail { + +tem...
3
1
1
[{"id": "G0", "claim": "The four `Base::template copyConverted(...)` calls in `TCRGBPalette` are invalid C++ (a template argument list is expected after a name prefixed by the `template` keyword) and fail the clang/WASM builds at lines 532-545; fix them.", "category": "correctness", "verdict": "supported", "priority": ...
null
FastLED__FastLED__2373
FastLED/FastLED
2,373
defect
327d145bdc2f31666fd019b969f2f7e5c73904b1
e10bebde7872583d212a6cbcbe401fa0f433a683
Add CRGB16 palette lookup API
## Summary Addresses the first PR-sized slice of #2372 by adding `ColorFromPaletteHD(...)`, a high-precision palette lookup path that returns `fl::CRGB16`. - Adds `ColorFromPaletteHD` overloads for `CRGBPalette16`, `CRGBPalette32`, `CRGBPalette256`, `TProgmemRGBPalette16`, and `TProgmemRGBPalette32` - Preserves inter...
diff --git a/src/colorutils.h b/src/colorutils.h index be20e4c7f31..8fe159922fc 100644 --- a/src/colorutils.h +++ b/src/colorutils.h @@ -38,6 +38,7 @@ using fl::TGradientDirectionCode; using fl::TBlendType; using fl::ColorFromPalette; using fl::ColorFromPaletteExtended; +using fl::ColorFromPaletteHD; using fl::fill...
3
3
1
[{"id": "G0", "claim": "ColorFromPaletteHD is re-exported into the legacy API in src/colorutils.h but returns CRGB16, which is not re-exported; add `using fl::CRGB16;` near the other palette type aliases.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Th...
null
FastLED__FastLED__2386
FastLED/FastLED
2,386
defect
e713d6f9f3c46a45cba0cbf44955f51db56b6108
7f4fd1c1c075a45856a793151520a8183e325326
Fix Digispark ATtiny85 Blink build
## Summary - fix C++98/old AVR preprocessing issues hit by Digispark builds (`static_assert` fallback and KISS FFT fixed-point includes) - replace the fallback `static_assert` dispatcher with one variadic macro backed by a template, with template-comma expressions parenthesized at source call sites - add Digispark-safe...
diff --git a/.github/workflows/build_digispark_tiny.yml b/.github/workflows/build_digispark_tiny.yml new file mode 100644 index 00000000000..d8817c27cf5 --- /dev/null +++ b/.github/workflows/build_digispark_tiny.yml @@ -0,0 +1,39 @@ +name: digispark-tiny + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }...
9
6
5
[{"id": "G0", "claim": "The new digispark-tiny workflow's path filters omit 'third_party/**', so changes to third_party/cq_kernel/kiss_fft.h will not trigger the Digispark CI coverage this PR adds.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The fall...
null
FastLED__FastLED__2414
FastLED/FastLED
2,414
defect
0dfcea64a9031dca94c973ca8c8f3e65d30ef2fd
4523b7fd153f4c19c0c1165b98c05d2068e9e2f4
refactor(fl/ui): split UI elements into per-element headers
## Summary Refactors the monolithic `fl/ui.h` into per-element headers under `fl/ui/`, plus assorted earlier refactor work that landed on this branch. ## Commits - \`refactor(fl/ui): scaffold per-element split + fix rx template lint\` - \`fix(fl/ui): address CodeRabbit feedback on per-element UI scaffold\` - \`refac...
diff --git a/ci/lint_cpp/test_unity_build.py b/ci/lint_cpp/test_unity_build.py index 258f7af3cff..aa011edd9b6 100644 --- a/ci/lint_cpp/test_unity_build.py +++ b/ci/lint_cpp/test_unity_build.py @@ -78,6 +78,7 @@ "fl/build/fl.stl+.cpp", "fl/build/fl.system+.cpp", "fl/build/fl.task+.cpp", + "fl/build/fl....
28
5
3
[{"id": "G0", "claim": "The explicit RxDevice::create specialization declarations added to rx.h promise FL_NOEXCEPT while the corresponding definitions in rx.cpp.hpp omit it outside the FL_IS_STUB block, which makes ESP32, Teensy 4.x and fallback builds ill-formed under C++17 once both are visible; add FL_NOEXCEPT to a...
null
FastLED__FastLED__2423
FastLED/FastLED
2,423
defect
ea5d8ec0a91ad8c57893902a9132eb2974ca5dff
d9ebddde52f514caf2d2e02a6b67f9bf9b052bef
feat(fl/stl): add FL_NO_UNWIND macros, apply to ESP32 unity headers
## Summary Adds `FL_NO_UNWIND` / `FL_NO_UNWIND_BEGIN` / `FL_NO_UNWIND_END` macros and applies the TU-level pair to both ESP32 unity-build headers. Targets the binary-size half of #2421 by suppressing GCC unwind-table emission for the FastLED ESP32 driver code, with a debug-aware gate so panic backtraces stay intact in...
diff --git a/src/fl/stl/compiler_control.h b/src/fl/stl/compiler_control.h index 45950b01d4b..b1b093429d3 100644 --- a/src/fl/stl/compiler_control.h +++ b/src/fl/stl/compiler_control.h @@ -224,6 +224,95 @@ #define FL_OPTIMIZATION_LEVEL_O0_END /* nothing */ #endif +// FL_NO_UNWIND / FL_NO_UNWIND_BEGIN / FL_NO_UN...
2
1
0
[{"id": "G0", "claim": "Add `#ifndef` guards around the multiple `_FL_BUILD_WANTS_BACKTRACE` definitions in src/fl/stl/compiler_control.h so they cannot trigger potential `-Wmacro-redefined` warnings on strict compiler settings.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introd...
null
FasterXML__jackson-core__1072
FasterXML/jackson-core
1,072
defect
f34de3d1a2f18c9632082c7791c33f76e966e6be
c1dedc604484b8575a8a2b1f899ab83d2d52daf7
Implement new `JsonFactory.builder().errorReportConfiguration()`
part of https://github.com/FasterXML/jackson-core/issues/1066
diff --git a/src/main/java/com/fasterxml/jackson/core/JsonFactory.java b/src/main/java/com/fasterxml/jackson/core/JsonFactory.java index 3fa4240070..c02ab9254d 100644 --- a/src/main/java/com/fasterxml/jackson/core/JsonFactory.java +++ b/src/main/java/com/fasterxml/jackson/core/JsonFactory.java @@ -284,6 +284,14 @@ publ...
1
1
0
[{"id": "G0", "claim": "The various ErrorReportConfiguration test classes (or at least the two Max* ones) should be combined into a single test class instead of separate ones.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
FasterXML__jackson-core__1078
FasterXML/jackson-core
1,078
defect
31a85192c3d87185e9525f17793de98693e08e75
2f0cce6b11a83672bb3f97f2b9cbf5ed119fd906
validate the length of names
* so far just a POC that only works with the UTF8StreamJsonParser and possibly NonBlockingUtf8JsonParsers * start with 50,000 char limit on names (as a default, that can be adjusted by users) * if this approach is ok, the other JsonParser implementations can be given the equivalent checks * I have added some check...
diff --git a/src/main/java/com/fasterxml/jackson/core/StreamReadConstraints.java b/src/main/java/com/fasterxml/jackson/core/StreamReadConstraints.java index 6da6770ad9..6550c32063 100644 --- a/src/main/java/com/fasterxml/jackson/core/StreamReadConstraints.java +++ b/src/main/java/com/fasterxml/jackson/core/StreamReadCo...
4
4
4
[{"id": "G0", "claim": "Name-length validation should not run on every name decode in ReaderBasedJsonParser; it should be moved into CharsToNameCanonicalizer (ideally only when a new name is added), which requires plumbing StreamReadConstraints through.", "category": "performance", "verdict": "supported", "priority": "...
null
FasterXML__jackson-core__1094
FasterXML/jackson-core
1,094
defect
9d9972a4f3778d416934064ea61da189adc208b0
09d0d9e21676c5bb35f4601a328e47cc2c95fd1f
support IOContext closing in GeneratorBase
JsonGeneratorImpl closes the IOContext now (part of the BufferRecycler changes in v2.16). Unfortunately, there are generators in other Jackson modules that now need to close the IOContext (eg TomlGenerator). It would be easier if GeneratorBase was changed and then classes like TomlGenerator could be updated to notify ...
diff --git a/src/main/java/com/fasterxml/jackson/core/base/GeneratorBase.java b/src/main/java/com/fasterxml/jackson/core/base/GeneratorBase.java index 74ee07afaf..75b87d2539 100644 --- a/src/main/java/com/fasterxml/jackson/core/base/GeneratorBase.java +++ b/src/main/java/com/fasterxml/jackson/core/base/GeneratorBase.ja...
1
1
0
[{"id": "G0", "claim": "The test methods in BufferRecyclerPoolTest should declare `throws Exception` instead of `throws IOException`, for ease of merging into 3.0.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
FasterXML__jackson-core__1106
FasterXML/jackson-core
1,106
defect
4858a747e0dcefe9353965f63dfe6d2336b3acd8
daeb4cdb8c0a68a12fba46156e2174d0895e8435
fix external pool pluggability
Trying to plug external pools from Quarkus I found that I made a terrible mistake so that external pools are never registered on the pooled `BufferRecycler` and then it never gets released to the pool. This pull request is intended to fix this bug. @cowtowncoder @pjfanning Sorry about this, but please try to give it...
diff --git a/src/main/java/com/fasterxml/jackson/core/JsonFactory.java b/src/main/java/com/fasterxml/jackson/core/JsonFactory.java index 391862118a..b50619820d 100644 --- a/src/main/java/com/fasterxml/jackson/core/JsonFactory.java +++ b/src/main/java/com/fasterxml/jackson/core/JsonFactory.java @@ -2150,7 +2150,7 @@ pro...
1
1
0
[{"id": "G0", "claim": "The test verifies pool life-cycle by directly calling the internal `_internalAcquire()` method; it should verify life-cycle without directly calling internal method(s).", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
FasterXML__jackson-core__1178
FasterXML/jackson-core
1,178
defect
40e0ccdec51c491dcd6e08d42881596283043367
cd63532bcac7af412d81b15af9d035aa9c8849f2
Allow configuring `DefaultPrettyPrinter` separators for empty Arrays and Objects
Fix for https://github.com/FasterXML/jackson-core/issues/1128
diff --git a/src/main/java/com/fasterxml/jackson/core/util/DefaultPrettyPrinter.java b/src/main/java/com/fasterxml/jackson/core/util/DefaultPrettyPrinter.java index 2e233306b8..7ec5ff9d0c 100644 --- a/src/main/java/com/fasterxml/jackson/core/util/DefaultPrettyPrinter.java +++ b/src/main/java/com/fasterxml/jackson/core/...
2
2
1
[{"id": "G0", "claim": "The new empty-separator fields/constants (_objectEmptySeparator, _arrayEmptySeparator and their Separators counterparts) should also carry a brief explanation of what they do.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "...
null
FasterXML__jackson-core__1197
FasterXML/jackson-core
1,197
defect
c844c60b32b9e684b37f108a073355c68166faf3
0e5ecabc54aa58e12a76dccaf59c2f5154b016c3
Add new `JsonWriteFeature.ESCAPE_FORWARD_SLASHES`
resolves #507
diff --git a/src/main/java/com/fasterxml/jackson/core/JsonGenerator.java b/src/main/java/com/fasterxml/jackson/core/JsonGenerator.java index 4853960af4..f79756fd39 100644 --- a/src/main/java/com/fasterxml/jackson/core/JsonGenerator.java +++ b/src/main/java/com/fasterxml/jackson/core/JsonGenerator.java @@ -7,6 +7,7 @@ ...
3
3
3
[{"id": "G0", "claim": "The escape-table helper should not be added to JsonGenerator (which is not JSON-specific) but in JsonGeneratorImpl, the shared base class for the concrete JSON generators.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The isEnabl...
null
FasterXML__jackson-core__1203
FasterXML/jackson-core
1,203
defect
dc5b746f33aa96235040c291d910da15692504cd
a4840c26c8e279a02c412d1caa13d7e89ca23254
Faster division by 1000
**Division by 1000** was replaced with more performant custom method using multiply and add. I suppose that this tiny method will be inlined, otherwise the code must be copied to places where is called. Another similar simple optimization was also done - **multiplication of int by constant `0.80`** in integer (exact...
diff --git a/src/main/java/com/fasterxml/jackson/core/io/NumberOutput.java b/src/main/java/com/fasterxml/jackson/core/io/NumberOutput.java index c78c610de1..4193d55429 100644 --- a/src/main/java/com/fasterxml/jackson/core/io/NumberOutput.java +++ b/src/main/java/com/fasterxml/jackson/core/io/NumberOutput.java @@ -85,7 ...
6
3
1
[{"id": "G0", "claim": "The @Ignore'd exhaustive divBy1000 test should be replaced by a test that covers a few common cases and some edge cases so that coverage actually runs in CI.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The multiplyByFourFifths...
null
FasterXML__jackson-core__1296
FasterXML/jackson-core
1,296
defect
222ac2abda40be593624d0ccd0ed1089395bdb19
b3a9e773537a452d9ce6cded9cdf2dd739d4419a
Fix #1310: Count JSON tokens
Idea is to be able to apply a StreamReadConstraint that limits total JSON tokens that you can have in an input doc. See https://github.com/FasterXML/jackson/discussions/231#discussioncomment-9603279
diff --git a/src/main/java/com/fasterxml/jackson/core/base/ParserMinimalBase.java b/src/main/java/com/fasterxml/jackson/core/base/ParserMinimalBase.java index 2af049f6ab..cb90e1e06f 100644 --- a/src/main/java/com/fasterxml/jackson/core/base/ParserMinimalBase.java +++ b/src/main/java/com/fasterxml/jackson/core/base/Pars...
2
2
2
[{"id": "G0", "claim": "At end-of-input the parser should call the dedicated non-counting _updateTokenToNull() (as other EOF paths in the PR already do) instead of _updateToken(null), which counts the EOF as a token.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "...
null
FasterXML__jackson-core__1331
FasterXML/jackson-core
1,331
defect
3e43c10449d55526d80d61357bcf7067f34fee2e
1e98bcee3d2b6ad4020d3ec20d6a06855882ad5c
Update to FastDoubleParser v1.0.1 to fix `BigDecimal` decoding problem
see https://github.com/FasterXML/jackson-databind/issues/4694#issuecomment-2344827965 Pick up fix for https://github.com/wrandelshofer/FastDoubleParser/issues/80. Thanks to @wrandelshofer for his continued support and quick response times. https://github.com/wrandelshofer/FastDoubleParser/releases/tag/v1.0.1 ...
diff --git a/src/main/java/com/fasterxml/jackson/core/io/BigDecimalParser.java b/src/main/java/com/fasterxml/jackson/core/io/BigDecimalParser.java index a90121ce01..d8b85b7023 100644 --- a/src/main/java/com/fasterxml/jackson/core/io/BigDecimalParser.java +++ b/src/main/java/com/fasterxml/jackson/core/io/BigDecimalParse...
3
3
0
[{"id": "G0", "claim": "The author should try to get the FastDoubleParser fix and a new version of that library instead of adding work-arounds in jackson-core.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A failing test case for the issue should be add...
null
FasterXML__jackson-core__1335
FasterXML/jackson-core
1,335
defect
89b2381753ff03042e688a4cfc9753150a42d51b
5eabe2e2005c828cef816591fa655b6fa1b575cb
Write 4-byte characters (surrogate pairs) instead of escapes
Issue: https://github.com/FasterXML/jackson-core/issues/223 A fix for issue #223. Some languages (Japanese, Chinese, ...) use 4-byte characters and it's annoying to have them marshaled as escapes. I've tried to fix this with minimum intrusions. I've only added this feature/fix to __writeStringSegment2_ method(s)...
diff --git a/src/main/java/com/fasterxml/jackson/core/JsonGenerator.java b/src/main/java/com/fasterxml/jackson/core/JsonGenerator.java index f8ee301e2b..eba4170e92 100644 --- a/src/main/java/com/fasterxml/jackson/core/JsonGenerator.java +++ b/src/main/java/com/fasterxml/jackson/core/JsonGenerator.java @@ -202,6 +202,8 ...
7
6
3
[{"id": "G0", "claim": "Writing surrogate pairs instead of escapes should only be applied behind a new JsonGenerator.Feature defaulted to false, because it probably imposes a performance hit on all users and some users may prefer the existing behaviour.", "category": "design", "verdict": "supported", "priority": "P1", ...
null
FasterXML__jackson-core__1411
FasterXML/jackson-core
1,411
defect
4ffe83f1ac8fef7367c141da4244b1e8b259fe94
65a9752de1f5ea4aa980a2a27f6a70966ca84271
Add `JsonFactoryBuilder.configureForJackson2()`, `JsonFactoryBuilder builderWithJackson2Defaults()`
* Relates to https://github.com/FasterXML/jackson-databind/issues/4986
diff --git a/src/main/java/tools/jackson/core/json/JsonFactory.java b/src/main/java/tools/jackson/core/json/JsonFactory.java index 430cad5cde..344c404cc7 100644 --- a/src/main/java/tools/jackson/core/json/JsonFactory.java +++ b/src/main/java/tools/jackson/core/json/JsonFactory.java @@ -183,14 +183,32 @@ public JsonFact...
2
2
2
[{"id": "G0", "claim": "The Javadoc on JsonFactory.builder() appears to have been accidentally swapped with the Javadoc of the next method.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The functionality should be implemented so that general (non...
null
FasterXML__jackson-core__1414
FasterXML/jackson-core
1,414
defect
99f749d958a55013724571d825625e1032af9d4b
b194ccc571eba6c9305f24a8ea515823ea071614
Skip RS CTRL-CHAR to support JSON Text Sequence (RFC7464)
Hello, This PR tries to resolve https://github.com/FasterXML/jackson-core/issues/633 This is my first PR for the project, so I could be missing a point. Feel free to guide me through points that might need to be added. I didn't implement it in the data input parser as it seems like we're skipping the validation ...
diff --git a/src/main/java/com/fasterxml/jackson/core/JsonParser.java b/src/main/java/com/fasterxml/jackson/core/JsonParser.java index a7d63c35bf..5857e61b9a 100644 --- a/src/main/java/com/fasterxml/jackson/core/JsonParser.java +++ b/src/main/java/com/fasterxml/jackson/core/JsonParser.java @@ -193,6 +193,19 @@ public e...
3
3
2
[{"id": "G0", "claim": "The _throwInvalidSpace error message should not hard-code \\u001E in the regular-whitespace list, since RS handling is managed by the ALLOW_RS_CONTROL_CHAR feature rather than being regular whitespace.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduce...
null
FasterXML__jackson-core__1417
FasterXML/jackson-core
1,417
defect
f1342b037d7b3da73bcd2745a1e3a696e3a01a07
71414c3dc58ea2c70d28eca872d2e6aed37dc0d2
Add opt-in support for non blocking parser usage with filter delegate
Hello, this PR is an initial attempt to resolve #1144 - It allows explicit usage of a non-blocking parser with the filter delegate through second constructor. - It throws an error if the NOT_AVAILABLE token is reported (it means the input isn't fed fully at once), and this fixes the infinite loop issue reported T...
diff --git a/src/main/java/com/fasterxml/jackson/core/filter/FilteringParserDelegate.java b/src/main/java/com/fasterxml/jackson/core/filter/FilteringParserDelegate.java index 759482a671..f0e8c9e486 100644 --- a/src/main/java/com/fasterxml/jackson/core/filter/FilteringParserDelegate.java +++ b/src/main/java/com/fasterxm...
4
4
1
[{"id": "G0", "claim": "The javadoc of the new FilteringParserDelegate constructor needs an @since 2.19 tag.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Relying on instanceof NonBlockingJsonParser only covers JSON-backed async parsers (Smile's ...
null
FasterXML__jackson-core__1474
FasterXML/jackson-core
1,474
defect
7ae2b8b9ea5d82c1b8d8ea543eb9e5577c0bff63
a202505ec43b51366bea9e085429b7a51b5023cd
Fixes the segment logic from splitting surrogates in half and not encoding correctly
Basically, the `combineSurrogates` logic doesn't run when the two characters of a surrogate are exactly at the end of one segment and the beginning of another. Fixes https://github.com/FasterXML/jackson-core/issues/1473
diff --git a/src/main/java/com/fasterxml/jackson/core/json/UTF8JsonGenerator.java b/src/main/java/com/fasterxml/jackson/core/json/UTF8JsonGenerator.java index b96e9003d0..32e7a1e8f9 100644 --- a/src/main/java/com/fasterxml/jackson/core/json/UTF8JsonGenerator.java +++ b/src/main/java/com/fasterxml/jackson/core/json/UTF8...
7
7
2
[{"id": "G0", "claim": "The new test should specify StandardCharsets.UTF_8 when decoding the output bytes instead of relying on the platform default encoding, which can differ by OS.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a brief comment abo...
null
FasterXML__jackson-core__1544
FasterXML/jackson-core
1,544
defect
38399a076eca19bbfa057b2c71bf7165cbe56a32
d0b944541a5caec767eb23496953e875d422f511
Validate `read()` parameters in `MergedStream` and `UTF32Reader` implementations
Adds parameter validation to `MergedStream` and `UTF32Reader` per InputStream/Reader contract, matching jackson-databind#5691 approach. ## Changes **MergedStream.java** - Added null check via `Objects.requireNonNull()` - Added bounds validation using `Objects.checkFromIndexSize()` (Java 9 API, compatible with Android...
diff --git a/src/main/java/tools/jackson/core/io/MergedStream.java b/src/main/java/tools/jackson/core/io/MergedStream.java index 182ae82d42..32ab9544c2 100644 --- a/src/main/java/tools/jackson/core/io/MergedStream.java +++ b/src/main/java/tools/jackson/core/io/MergedStream.java @@ -1,6 +1,7 @@ package tools.jackson.co...
3
3
3
[{"id": "G0", "claim": "In UTF32Reader.read(char[], int, int), revert the use of Objects.checkFromIndexSize and restore the old check that calls reportBounds, keeping the new test.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Fix the failing UTF32Reade...
null
FasterXML__jackson-core__266
FasterXML/jackson-core
266
defect
4709c6a21bbda65d5f1d2aa214a804998a5c2413
3a041973275bb68b9ab5f341b9f1376c0a05f121
CharSequence variant of JsonStringEncoder.quoteAsString
Fix for https://github.com/FasterXML/jackson-core/issues/265
diff --git a/src/main/java/com/fasterxml/jackson/core/io/JsonStringEncoder.java b/src/main/java/com/fasterxml/jackson/core/io/JsonStringEncoder.java index 07956ebb3e..b4ccbf9077 100644 --- a/src/main/java/com/fasterxml/jackson/core/io/JsonStringEncoder.java +++ b/src/main/java/com/fasterxml/jackson/core/io/JsonStringEn...
1
1
0
[{"id": "G0", "claim": "Remove the stale `// For [JACKSON-853]` comment on the new test, or change it to point to the correct issue (core#266).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
FasterXML__jackson-core__380
FasterXML/jackson-core
380
defect
8be9b70576abefd15f9842bd6d0a64524cc6233f
87977635a8d833de0a36da980b81685cf3950d29
#208 FilteringParserDelegate match count support
First approach to handle _matchCount. Given that `FilteringParserDelegate` is a non-trivial one - it's worth do have a double-check on this one.
diff --git a/src/main/java/com/fasterxml/jackson/core/filter/FilteringParserDelegate.java b/src/main/java/com/fasterxml/jackson/core/filter/FilteringParserDelegate.java index 6fd5f82be9..1496150b47 100644 --- a/src/main/java/com/fasterxml/jackson/core/filter/FilteringParserDelegate.java +++ b/src/main/java/com/fasterxm...
3
1
1
[{"id": "G0", "claim": "The PR replaces f.filterFinishArray() with f.filterFinishObject() in struct-end handling that serves both ID_END_ARRAY and ID_END_OBJECT, assuming the scope is always a closing Object, so it probably needs to call a different method depending on the token type (check t.id() again or duplicate)."...
null
FasterXML__jackson-core__534
FasterXML/jackson-core
534
defect
a8fbb07a10476c2f0b361df748de090840ae5e5f
8c7f9642120eec21640a1bc56912fe3b0d47d1c9
Account for bytes processed by encoding detection
UTF8StreamJsonParser tracks read pointer (offset) and bytes processed separately and uses those to generate JsonLocation. When the byte payload starts with a UTF BOM, ByteSourceJsonBootstrapper processes a few bytes ahead of the parser, moves/increases the offset and passes the newly computed offset to the parser w...
diff --git a/src/main/java/com/fasterxml/jackson/core/json/ByteSourceJsonBootstrapper.java b/src/main/java/com/fasterxml/jackson/core/json/ByteSourceJsonBootstrapper.java index baa4d5d20d..b40778d215 100644 --- a/src/main/java/com/fasterxml/jackson/core/json/ByteSourceJsonBootstrapper.java +++ b/src/main/java/com/faste...
1
1
1
[{"id": "G0", "claim": "Replacing the 10-argument UTF8StreamJsonParser constructor with an 11-argument one is problematic for backwards compatibility; the old 10-arg constructor should be kept around (deprecated) so that 2.9 databind / 2.10 core version combinations still work.", "category": "design", "verdict": "suppo...
null
FasterXML__jackson-core__604
FasterXML/jackson-core
604
defect
7fe4494880e4e3645fa177f8e0c0ebfab1363fe9
8556ca6a7448f698f6ef1fb6bf2e3086a90da702
Fixed issue #603
`_currInputProcessed`, `_currInputRowStart`, and `_nameStartOffset` must be updated before `_inputPtr` See #603
diff --git a/src/main/java/com/fasterxml/jackson/core/json/ReaderBasedJsonParser.java b/src/main/java/com/fasterxml/jackson/core/json/ReaderBasedJsonParser.java index bcf143e603..ea69889e89 100644 --- a/src/main/java/com/fasterxml/jackson/core/json/ReaderBasedJsonParser.java +++ b/src/main/java/com/fasterxml/jackson/co...
1
1
1
[{"id": "G0", "claim": "The new test code cannot use JDK 8-only APIs (e.g. java.util.Base64 at line 7, plus a few other things) until 3.0, so they must be replaced for the 2.x branch.", "category": "compatibility", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
FasterXML__jackson-core__646
FasterXML/jackson-core
646
defect
8eded7f64ab3e95ae464c11fc73ff5d270144109
af79cf070e603f445566b8057305ad0b29f20b12
improvement: allowing more granular control of reading behaviour for base64
As Discussed in #500. Allowing configuration of read behaviour via trio methods (withPadddingForbidden, withPaddingAllowed, withPaddingRequired) existing usage of usesPadding now changes meaning to writePadding. (maybe this should be renamed?) also there is a method included withWritePadding(boolean) to allow conf...
diff --git a/src/main/java/com/fasterxml/jackson/core/Base64Variant.java b/src/main/java/com/fasterxml/jackson/core/Base64Variant.java index 6ef399f9fa..f4d52d76ba 100644 --- a/src/main/java/com/fasterxml/jackson/core/Base64Variant.java +++ b/src/main/java/com/fasterxml/jackson/core/Base64Variant.java @@ -87,6 +87,11 @...
5
5
2
[{"id": "G0", "claim": "The new _paddingReadBehaviour field should not be declared transient.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "New non-private methods should have @since 2.12 in their Javadoc.", "category": "documentation", "verdic...
null
FasterXML__jackson-core__733
FasterXML/jackson-core
733
defect
4465e7a383b4ca33f9a011e1444d67d7f58fca1c
aaa32234705c662b70a152224915840a18892731
Add `StreamReadCapability.EXACT_FLOATS` to indicate whether parser can expose exact floating-point values or not
Adds `StreamReadCapability.EXACT_FLOATS` as suggested in https://github.com/FasterXML/jackson-core/issues/730#issuecomment-997238496.
diff --git a/src/main/java/com/fasterxml/jackson/core/JsonGenerator.java b/src/main/java/com/fasterxml/jackson/core/JsonGenerator.java index 13ee1ad2f8..2a5fcd0aad 100644 --- a/src/main/java/com/fasterxml/jackson/core/JsonGenerator.java +++ b/src/main/java/com/fasterxml/jackson/core/JsonGenerator.java @@ -2468,13 +2468...
2
1
1
[{"id": "G0", "claim": "Copying floating-point numbers as raw text in copyCurrentEvent/copyCurrentContents may not work across backends (e.g. Smile does not support writeNumber(String)), so the copy logic should be left out of this PR — first merge a smaller PR adding only StreamReadCapability.EXACT_FLOATS, and rework ...
null
FasterXML__jackson-core__749
FasterXML/jackson-core
749
defect
3cb5ce818e476d5b0b504b1833c7d33be80e9ca4
e88d81de8de63882bbeff1bd22d877f770349e43
Allow use of faster floating-point number serialization (`StreamWriteFeature.USE_FAST_DOUBLE_WRITER`)
relates to https://github.com/FasterXML/jackson-core/issues/514
diff --git a/pom.xml b/pom.xml index 13d68726a7..7e51e4c748 100644 --- a/pom.xml +++ b/pom.xml @@ -37,11 +37,11 @@ <!-- 04-Mar-2019, tatu: Retain Java6/JDK1.6 compatibility for annotations for Jackson 2.x, but use Moditect to get JDK9+ module info support; need newer bundle plugin as well --> ...
2
1
1
[{"id": "G0", "claim": "Schubfach writes \"9.8E-45\" for 1.0E-44f where Ryu writes \"1.0E-44\", so the test's expected value had to be hacked to the Schubfach output and this edge-case discrepancy is flagged TODO investigate.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "introduced"},...
null
FasterXML__jackson-core__762
FasterXML/jackson-core
762
defect
2dee63a45f15264e936db0d574501bb8fd5a9d08
2dccb17c6f99aa5c9137aa2443c15eaa0e03bc1a
Make `JsonPointer` `java.io.Serializable`
Noting that `Instances [of JsonPointer] are fully immutable and can be cached, shared between threads` it would be nice to be able to pass these between workers that require object serialization to pass instances around.
diff --git a/src/main/java/com/fasterxml/jackson/core/JsonPointer.java b/src/main/java/com/fasterxml/jackson/core/JsonPointer.java index 4b892981b7..e0292f7657 100644 --- a/src/main/java/com/fasterxml/jackson/core/JsonPointer.java +++ b/src/main/java/com/fasterxml/jackson/core/JsonPointer.java @@ -1,6 +1,12 @@ package...
2
2
1
[{"id": "G0", "claim": "Serializing JsonPointer could be optimized to serialize it as a String and re-parse it (e.g. by implementing Externalizable), which would be much more space-efficient than relying on JDK serialization.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"},...
null
FasterXML__jackson-core__774
FasterXML/jackson-core
774
defect
011e31f5c703909ad6af4917f08b6af83cd4d53b
76905f59a772b232c16d62393db0beb756f3ab3c
Add a feature to allow leading plus sign (`JsonReadFeature.ALLOW_LEADING_PLUS_SIGN_FOR_NUMBERS`)
Another of the 'missing' features mentioned in https://github.com/FasterXML/jackson-core/issues/707
diff --git a/src/main/java/com/fasterxml/jackson/core/JsonParser.java b/src/main/java/com/fasterxml/jackson/core/JsonParser.java index cdfc11f7fe..56fc81e74c 100644 --- a/src/main/java/com/fasterxml/jackson/core/JsonParser.java +++ b/src/main/java/com/fasterxml/jackson/core/JsonParser.java @@ -182,6 +182,11 @@ public e...
3
2
1
[{"id": "G0", "claim": "The existing code throws an exception with a confusing message when a plus sign precedes a number, and the author asks whether he may use this PR to change the message to say that plus signs are not allowed in front of JSON numbers.", "category": "documentation", "verdict": "supported", "priorit...
null
FasterXML__jackson-core__777
FasterXML/jackson-core
777
defect
fb1d64c983dc49f012fd7f91f1312184089053be
00c853ec23ffcfaac0ff7228cf7e9c6d853f2ef3
issue with parsing '-.125' when leading decimal points allowed
It's easier to describe the issue with a broken test case. See NonStandardNumberParsingTest and the tests that call _testLeadingDotInDecimalAllowed - I've added an extra scenario for '-.125'. All of the tests get back 0.125 instead of -0.125. One issue is that _parseFloatThatStartsWithPeriod has hardcode when cal...
diff --git a/src/main/java/com/fasterxml/jackson/core/json/ReaderBasedJsonParser.java b/src/main/java/com/fasterxml/jackson/core/json/ReaderBasedJsonParser.java index 193a08f1e1..281a0b4739 100644 --- a/src/main/java/com/fasterxml/jackson/core/json/ReaderBasedJsonParser.java +++ b/src/main/java/com/fasterxml/jackson/co...
2
1
1
[{"id": "G0", "claim": "The new '-.125' test should probably also cover the other value accessors, such as getDoubleValue() and the Float variants.", "category": "testing", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The failing '-.125' tests should be moved into a separate in...
null
FasterXML__jackson-core__791
FasterXML/jackson-core
791
defect
44f186629dff99d2457bab22ad103658ed57db01
b746468865c29eb4cda617c2e57b9f2367e200d4
Async pos sign
The feature for allowing leading plus signs in numbers does not work with async JSON parser. This is my attempt at a fix.
diff --git a/src/main/java/com/fasterxml/jackson/core/io/NumberInput.java b/src/main/java/com/fasterxml/jackson/core/io/NumberInput.java index 754b4bf8f5..e8a751655c 100644 --- a/src/main/java/com/fasterxml/jackson/core/io/NumberInput.java +++ b/src/main/java/com/fasterxml/jackson/core/io/NumberInput.java @@ -40,6 +40,...
2
2
0
[{"id": "G0", "claim": "Use the free minor-state value 22 instead of 230 for MINOR_NUMBER_PLUS in NonBlockingJsonParserBase.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new async number-parsing tests should probably catch a more specific exception...
null
FasterXML__jackson-core__819
FasterXML/jackson-core
819
defect
19f1cfcb5115611688351023c0847430bc00d9ab
436581d51bd055567bb58d11abce15b286549d61
add cfg for hex values if we want upper or lowercase letters
For issue https://github.com/FasterXML/jackson-core/issues/717 I tried to make this configurable. Its my first PR here, I didnt found a good spot for testing, would be nice if you can point me out where to do this.
diff --git a/src/main/java/com/fasterxml/jackson/core/JsonGenerator.java b/src/main/java/com/fasterxml/jackson/core/JsonGenerator.java index 38d9b31909..5ad8dabad3 100644 --- a/src/main/java/com/fasterxml/jackson/core/JsonGenerator.java +++ b/src/main/java/com/fasterxml/jackson/core/JsonGenerator.java @@ -250,8 +250,21...
6
5
2
[{"id": "G0", "claim": "The new JsonGenerator.Feature's deprecated @since tag says 2.10 but should say 2.14 since the feature is added then.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Removing the old no-arg copyHexChars()/copyHexBytes() metho...
null
FasterXML__jackson-core__827
FasterXML/jackson-core
827
defect
93a547406b8e4016313e94ea9c157d410ed87d12
cbd44a00818e956d12308c05ea58b1244acab261
Add numeric value size limits via `StreamReadConstraints` -- default 1000 chars (fixes `sonatype-2022-6438`)
* Introduces a default max length for numbers of 1000 chars - this default can be overridden (eg set to a much higher limit) * we shouldn't allow super large numbers as a default (I can justify this in private exchanges but don't want to spell it out in a public forum) * checks the string/char[] length before parsing...
diff --git a/src/main/java/com/fasterxml/jackson/core/JsonFactory.java b/src/main/java/com/fasterxml/jackson/core/JsonFactory.java index f005f3ba19..ec81107606 100644 --- a/src/main/java/com/fasterxml/jackson/core/JsonFactory.java +++ b/src/main/java/com/fasterxml/jackson/core/JsonFactory.java @@ -1687,8 +1687,10 @@ pu...
6
3
2
[{"id": "G0", "claim": "Setters (and probably getters) such as setMaxNumLen should be avoided on JsonParser since 3.0 makes parsers fully immutable; settings should instead be passed in a separate config object configured builder-style.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introdu...
null
FasterXML__jackson-core__851
FasterXML/jackson-core
851
defect
0d5c70ff02681b4305f0d4932915e7f025e54e12
96bbc601873e1a4c4e6445fcfa13d5f57145030a
Add `StreamReadFeature.USE_FAST_BIG_NUMBER_PARSER` to enable faster `BigDecimal`, `BigInteger` parsing
* So far, this one feature also affects BigInteger parsing, but I could introduce a 2nd feature if that was preferred * The fastdoubleparser Big Integer parser allows hex numbers but jackson-core's JSON parsers block the hex numbers anyway. * I've got an open issue with fastdoubleparser team and will circle back wh...
diff --git a/src/main/java/com/fasterxml/jackson/core/JsonParser.java b/src/main/java/com/fasterxml/jackson/core/JsonParser.java index 50c6b0e1a7..427ce54deb 100644 --- a/src/main/java/com/fasterxml/jackson/core/JsonParser.java +++ b/src/main/java/com/fasterxml/jackson/core/JsonParser.java @@ -348,6 +348,17 @@ public e...
3
3
1
[{"id": "G0", "claim": "A core library should not control parallelism by default, so anything that uses thread pools, executors or other threading models (e.g. the parallel fast big-number parsing support) should be kept out of core and single-main-thread processing must be guaranteed, otherwise async processing, threa...
null
FasterXML__jackson-core__864
FasterXML/jackson-core
864
defect
ef6ecee327fcf567afd2f25f25b7a11a0e3e1eec
0ace9888e39971e900917248bf250e124fbde9fd
StreamReadConstraints: add maxStringLen
Relates to #863 * Open for discussion * The TextBuffer append methods have been updated to police the string length. This will lead to more timely exceptions than waiting until contentsAsString method is called. * A new class ReadConstrainedTextBuffer has been created. The legacy TextBuffer can still be used in ca...
diff --git a/src/main/java/com/fasterxml/jackson/core/StreamReadConstraints.java b/src/main/java/com/fasterxml/jackson/core/StreamReadConstraints.java index d30dd4fbb6..c7c9187a9d 100644 --- a/src/main/java/com/fasterxml/jackson/core/StreamReadConstraints.java +++ b/src/main/java/com/fasterxml/jackson/core/StreamReadCo...
7
5
1
[{"id": "G0", "claim": "TextBuffer should get a constructor taking StreamReadConstraints so its methods no longer each need one passed in, with an unconstrained TextBuffer for write use cases like SegmentedStringWriter.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1",...
null
FasterXML__jackson-core__865
FasterXML/jackson-core
865
defect
2277d2c11aa2858f95e16dce8e20c616655b7a07
c6d50fccdae9809a31dffcbc103fcd5f8355d8c6
Optimize parsing 19 digit longs
Parsing 19 digit long values is significantly slower than parsing 18 digit long values as we are hitting a slow path that does a string allocation. 19 digit long values are quite common when a random number generator is used to generate long values. We have to pay attention that we only use this fast path if the ...
diff --git a/src/main/java/com/fasterxml/jackson/core/base/ParserBase.java b/src/main/java/com/fasterxml/jackson/core/base/ParserBase.java index 89ae73504a..45da44107d 100644 --- a/src/main/java/com/fasterxml/jackson/core/base/ParserBase.java +++ b/src/main/java/com/fasterxml/jackson/core/base/ParserBase.java @@ -939,7...
7
2
1
[{"id": "G0", "claim": "The parseLong19 javadoc says it parses an unsigned long whose input must not contain a leading minus sign, but the code appears to handle signed numbers, which looks wrong.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Ple...
null
FasterXML__jackson-core__923
FasterXML/jackson-core
923
defect
6eddff3df4dd75bc1a84dd96561bc3f4011d1fc9
c1d582a06a9c77bdaf0ca3f576f54cd4ed464c7f
Add constraint validation for TextBuffer.append
This fixes https://github.com/FasterXML/jackson-dataformats-text/issues/384, the tests now fail in the append call, not just on contentsAsString. FYI @pjfanning
diff --git a/src/main/java/com/fasterxml/jackson/core/util/TextBuffer.java b/src/main/java/com/fasterxml/jackson/core/util/TextBuffer.java index 024c6002ac..405b3bb66a 100644 --- a/src/main/java/com/fasterxml/jackson/core/util/TextBuffer.java +++ b/src/main/java/com/fasterxml/jackson/core/util/TextBuffer.java @@ -710,6...
2
1
1
[{"id": "G0", "claim": "validateAppend in the raw (unconstrained) TextBuffer adds processing overhead on every append that plain TextBuffer does not need; it would be better to have a protected empty implementation in TextBuffer with a protected final override in ReadConstrainedTextBuffer.", "category": "performance", ...
null
FasterXML__jackson-core__983
FasterXML/jackson-core
983
defect
1e68d1c7604a3c974884c6a44115750dbd0f30c7
f2e845a5ad4279e8f5f0e45f45609da2dc8d2913
try to avoid precision loss
* see https://github.com/FasterXML/jackson-core/issues/730 * prefer BigDecimal/BigInteger to avoid losing precision
diff --git a/src/main/java/com/fasterxml/jackson/core/JsonGenerator.java b/src/main/java/com/fasterxml/jackson/core/JsonGenerator.java index fbc56a8d3b..f5d68b3127 100644 --- a/src/main/java/com/fasterxml/jackson/core/JsonGenerator.java +++ b/src/main/java/com/fasterxml/jackson/core/JsonGenerator.java @@ -2482,22 +2482...
2
2
2
[{"id": "G0", "claim": "The int/long branch should keep using the parser's long value instead of writing BigInteger, because integers already keep their magnitude and unnecessary BigInteger upgrades hurt buffering-heavy paths.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}...
null
FasterXML__jackson-databind__2432
FasterXML/jackson-databind
2,432
defect
5d703fab5d0b2443c6c5ede05aac47c2eb9399b9
fc5eb2b1282243ff04e60154ce36d3cf69886c7e
Add support for module bundles
This PR adds support for module bundles. This feature is useful in cases where you have explicit dependencies on other modules, but you have to ensure that these dependencies will be registered as well, making it easier to depend on them without worrying about transitive dependencies. I propose making it a built...
diff --git a/src/main/java/com/fasterxml/jackson/databind/Module.java b/src/main/java/com/fasterxml/jackson/databind/Module.java index 5884e6b3b5..fc892bc5fc 100644 --- a/src/main/java/com/fasterxml/jackson/databind/Module.java +++ b/src/main/java/com/fasterxml/jackson/databind/Module.java @@ -15,6 +15,7 @@ import com...
2
2
1
[{"id": "G0", "claim": "The Javadoc of the new getDependencies() method should carry a `@since 2.10` tag.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A module's dependencies should typically be registered before the module itself is registered,...
null
FasterXML__jackson-databind__2905
FasterXML/jackson-databind
2,905
defect
960f4f6f5bac31a1a3c81cf5494bc24a5d1e3e55
e9a11ff72c674c4a26003d097ac4508449cc8f00
Adds support for `@JsonKey` annotation
When serializing the key of a Map, look for a `@JsonKey` annotation. When present (taking priority over `@JsonValue`), skip the StdKey:Serializer and attempt to find a serializer for the inner type. Depends on https://github.com/FasterXML/jackson-annotations/pull/179 Fixes #2871
diff --git a/src/main/java/com/fasterxml/jackson/databind/AnnotationIntrospector.java b/src/main/java/com/fasterxml/jackson/databind/AnnotationIntrospector.java index 0ea35648e5..5242643c5f 100644 --- a/src/main/java/com/fasterxml/jackson/databind/AnnotationIntrospector.java +++ b/src/main/java/com/fasterxml/jackson/da...
6
5
1
[{"id": "G0", "claim": "The three tests asserting the current class-as-key/value serialization behaviour (e.g. `{\"innerKey\":\"value\"}`) are `@Ignore`d, and the author is not sure the behaviour they assert is appropriate.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id"...
null
FasterXML__jackson-databind__3179
FasterXML/jackson-databind
3,179
defect
c5fd40f3be17e24af836cbb2e4dfb3eff17823a7
d14ebdc4db348d948428f5dd95dfb65a316dd1fe
Support `suppressed` property when deserializing `Throwable`
Closes #3177 When this solution for #3177 is OK, I would suggest to continue refactoring `ThrowableDeserializer.deserializeFromObject(...)` such that code duplications are removed / the method gets shorter. For example, the following snippet exists twice in the method ``` // any pending values? if (pending != ...
diff --git a/src/main/java/com/fasterxml/jackson/databind/deser/std/ThrowableDeserializer.java b/src/main/java/com/fasterxml/jackson/databind/deser/std/ThrowableDeserializer.java index b72f7ab5af..ae6b3ad0cf 100644 --- a/src/main/java/com/fasterxml/jackson/databind/deser/std/ThrowableDeserializer.java +++ b/src/main/ja...
1
1
1
[{"id": "G0", "claim": "The 'suppressed' array should be read through DeserializationContext (ctxt.readValue) instead of via JsonParser (p.readValueAs), because the JsonParser route creates a new context with possibly differing settings.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "i...
null
FasterXML__jackson-databind__3416
FasterXML/jackson-databind
3,416
defect
0ede93508cdf4c66791fbe436fc1e917a14dae19
a6e8fe385217955a8c134043b306e5438e871109
Throw JsonMappingException for deeply nested JSON (#2816, CVE-2020-36518)
By throwing a checked exception instead of a runtime exception, it's less likely that Jackson's issues will bring down the caller's code in unexpected ways. I think this might be good enough to consider the CVE resolved. I copied over the existing failing test and modified it so that it passes if either the original...
diff --git a/src/main/java/com/fasterxml/jackson/databind/deser/std/UntypedObjectDeserializer.java b/src/main/java/com/fasterxml/jackson/databind/deser/std/UntypedObjectDeserializer.java index 46df6cf62b..46e6efbd6f 100644 --- a/src/main/java/com/fasterxml/jackson/databind/deser/std/UntypedObjectDeserializer.java +++ b...
3
2
1
[{"id": "G0", "claim": "Catching the StackOverflowError and rethrowing a JsonMappingException will not really address the real issue, because by the time the StackOverflowError is raised the damage (resources consumed) is already done.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduc...
null
FasterXML__jackson-databind__3626
FasterXML/jackson-databind
3,626
defect
4b03c469e5d28d6e20d3bb4d0b26123ef5c30c19
b0107741b709f7d6cfc0e15d83e132f99ed3f15f
Implementation for "Provide method ObjectMapper.copyWith(JsonFactory)" Closes #3212
Not sure about this implementation. Some feedback would be appreciated until I have time to work on it again soon.
diff --git a/src/main/java/com/fasterxml/jackson/databind/ObjectMapper.java b/src/main/java/com/fasterxml/jackson/databind/ObjectMapper.java index deea44fabb..923735ff5e 100644 --- a/src/main/java/com/fasterxml/jackson/databind/ObjectMapper.java +++ b/src/main/java/com/fasterxml/jackson/databind/ObjectMapper.java @@ -5...
3
1
1
[{"id": "G0", "claim": "The author should immediately, at a minimum, test the new copyWith against the standard JSON-backed mapper, as a sanity check that the resulting mapper still works and has the same Mapper-level settings.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {...
null
FasterXML__jackson-databind__3701
FasterXML/jackson-databind
3,701
defect
dd733c4c5c48e49c4ee7f0bebce3ff939d0bcf03
3cd7ae34f573f20160f0c6781d34fe50a84515d7
Allow custom JsonNode implementations
Fixes #3699
diff --git a/src/main/java/com/fasterxml/jackson/databind/node/NodeCursor.java b/src/main/java/com/fasterxml/jackson/databind/node/NodeCursor.java index 297a6fc343..02a777c792 100644 --- a/src/main/java/com/fasterxml/jackson/databind/node/NodeCursor.java +++ b/src/main/java/com/fasterxml/jackson/databind/node/NodeCurso...
5
5
0
[{"id": "G0", "claim": "The isObject guard added to ObjectCursor's constructor is unnecessary (ArrayCursor has no such check) and should be removed.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new test helper files CustomArrayNode.java and CustomO...
null
FasterXML__jackson-databind__3799
FasterXML/jackson-databind
3,799
defect
9a356ecb68d76873754a208712197403e509c1c5
f6556ec00a75c7541dd6ee2b5f10c3588e839972
Add tests and JavaDoc to `SimpleFilterProvider`
## Description - Improve JavaDoc and add more tests around `SimpleFilterProvider addFilter()`. - Below are cases that need to be tested. ### Tested cases - Adding two filters with duplicate id are added, the filter later added will remain. - Adding "weird filter" by `.addFilter("filterId", SimpleBeanProperty...
diff --git a/src/main/java/com/fasterxml/jackson/databind/ser/impl/SimpleFilterProvider.java b/src/main/java/com/fasterxml/jackson/databind/ser/impl/SimpleFilterProvider.java index d80da5a6c3..34e4d60db2 100644 --- a/src/main/java/com/fasterxml/jackson/databind/ser/impl/SimpleFilterProvider.java +++ b/src/main/java/com...
8
7
0
[{"id": "G0", "claim": "The JavaDoc added to SimpleFilterProvider.addFilter contains a duplicated word: \"Binding binding\" should read \"Binding\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new test class should live in package com.faste...
null
FasterXML__jackson-databind__3929
FasterXML/jackson-databind
3,929
defect
67103c2881aa506ebceb25824becac5b80a4f86a
1bd87c67cd884c99d4aee11dc2aee4c899dac93b
Json property affects serialization order
* relates to https://github.com/FasterXML/jackson-databind/issues/3928 * contains https://github.com/FasterXML/jackson-databind/pull/3927 (but that is less contentious and can be added while this is still being discussed)
diff --git a/src/main/java/com/fasterxml/jackson/databind/introspect/POJOPropertiesCollector.java b/src/main/java/com/fasterxml/jackson/databind/introspect/POJOPropertiesCollector.java index a2893650f0..df3dfe0adc 100644 --- a/src/main/java/com/fasterxml/jackson/databind/introspect/POJOPropertiesCollector.java +++ b/sr...
3
2
1
[{"id": "G0", "claim": "Skipping creators for all records breaks more than it fixes, because it causes issues for record deserialization.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The change may prevent adding necessary annotations in construct...
null
FasterXML__jackson-databind__3962
FasterXML/jackson-databind
3,962
defect
d63a5662f8b7ff06ca0f33c1a5c9c9fc9d27d7c6
f91dd11f1ab5ea8636ea30916edccbdb5c662ccf
Fix `Coercion` fail message around `Array` and `Object`
resolves #3924
diff --git a/src/main/java/com/fasterxml/jackson/databind/deser/std/StdDeserializer.java b/src/main/java/com/fasterxml/jackson/databind/deser/std/StdDeserializer.java index fa8efe7147..e3462bf885 100644 --- a/src/main/java/com/fasterxml/jackson/databind/deser/std/StdDeserializer.java +++ b/src/main/java/com/fasterxml/j...
4
4
2
[{"id": "G0", "claim": "The newly added `case JsonTokenId.ID_START_ARRAY:` in `_parseString` is missing a `break` after its check, so execution falls through into the `ID_TRUE`/`ID_FALSE` case and the Array coercion check's result is discarded.", "category": "correctness", "verdict": "supported", "priority": "P1", "sco...
null
FasterXML__jackson-databind__4025
FasterXML/jackson-databind
4,025
defect
ecaf95c33edf901a637f97af47e22ae9a41f2ef6
353f8fe3cb6ee11437b38dc30107f7288f625d39
Improve handling of `@JsonEnumDefaultValue` via `AnnotatedClass`
parent issue : #3990 ## Motivation Currently, `@JsonEnumDefaultValue` is internally introspected via ```java ClassUtil.findFirstAnnotatedEnumValue(Class<Enum<?>>, JsonEnumDefaultValue.class); ``` ... which does not allow mixins. ## Note Some non-deprecated `EnumResolver` construction methods still use...
diff --git a/src/main/java/com/fasterxml/jackson/databind/AnnotationIntrospector.java b/src/main/java/com/fasterxml/jackson/databind/AnnotationIntrospector.java index 2cb5e69ba3..1dfb2e4ba8 100644 --- a/src/main/java/com/fasterxml/jackson/databind/AnnotationIntrospector.java +++ b/src/main/java/com/fasterxml/jackson/da...
3
1
1
[{"id": "G0", "claim": "The javadoc of the new findDefaultEnumValue(AnnotatedClass, Enum[]) is incorrect: AnnotationIntrospector does not rely on Jackson annotations, only JacksonAnnotationIntrospector does.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "c...
null
FasterXML__jackson-databind__4036
FasterXML/jackson-databind
4,036
defect
41a4c2b9db3a72c1394ad0750f48ed31b4636f9f
afcdf13ae96b4c0757302148d110e1f1747c7324
Use `@JsonProperty` for Enum values also when `READ_ENUMS_USING_TO_STRING` enabled
When `DeserializationFeature.READ_ENUMS_USING_TO_STRING` is enabled, the enum deserializer neglects inspecting `@JsonProperty`; see the test case, it succeeds if `READ_ENUMS_USING_TO_STRING` is disabled and would fail with `READ_ENUMS_USING_TO_STRING` enabled (without this patch).
diff --git a/src/main/java/com/fasterxml/jackson/databind/util/EnumResolver.java b/src/main/java/com/fasterxml/jackson/databind/util/EnumResolver.java index c546b18fff..4ff7e9d945 100644 --- a/src/main/java/com/fasterxml/jackson/databind/util/EnumResolver.java +++ b/src/main/java/com/fasterxml/jackson/databind/util/Enu...
3
3
0
[{"id": "G0", "claim": "When @JsonProperty is applied, WRITE_ENUMS_USING_TO_STRING serialization ought to use the overriding property string rather than Enum#toString, whether tackled in this PR or a separate one.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G...
null
FasterXML__jackson-databind__4065
FasterXML/jackson-databind
4,065
defect
0910dc49c254827eceb152a9547db09ff546a9d0
9038a7965375a8ddb160031572eb8926aa4c2fdd
Add support for new `JsonTypeInfo.Id.SIMPLE_NAME` polymorphic type id option
(resolves #4061) ### Description - As discussed in [the original issue](https://github.com/FasterXML/jackson-databind/issues/4061#issuecomment-1659252840), implementation of `TypeNameIdResolver` fits right in, so implementation is heavily referenced. - Note that we do not actually invoke `Class.getSimpleName()`,...
diff --git a/src/main/java/com/fasterxml/jackson/databind/jsontype/impl/SimpleClassNameIdResolver.java b/src/main/java/com/fasterxml/jackson/databind/jsontype/impl/SimpleClassNameIdResolver.java new file mode 100644 index 0000000000..e7852d9ae1 --- /dev/null +++ b/src/main/java/com/fasterxml/jackson/databind/jsontype/i...
5
4
2
[{"id": "G0", "claim": "The new resolver does not need to use a concurrent data structure since its instances are immutable.", "category": "performance", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The class should be named `SimpleNameIdResolver` instead of `SimpleClassNameIdR...
null
FasterXML__jackson-databind__4111
FasterXML/jackson-databind
4,111
defect
9d18eb057b692819b7dc40f87740cbc8707f89a2
b35d015140c6235793aafd0dd998c41bd717f81a
Add a way to configure`SerializerCache` Jackson uses
(Part of #2502) ### Motification Mostly similar to #4101 except `SeriailzerCache` constructor where I added a note for.
diff --git a/src/main/java/com/fasterxml/jackson/databind/ObjectMapper.java b/src/main/java/com/fasterxml/jackson/databind/ObjectMapper.java index a9ccb1bb81..ac361552f1 100644 --- a/src/main/java/com/fasterxml/jackson/databind/ObjectMapper.java +++ b/src/main/java/com/fasterxml/jackson/databind/ObjectMapper.java @@ -2...
3
3
0
[{"id": "G0", "claim": "SerializerCache hard-casts the LookupCache _sharedMap to LRUMap when building the read-only lookup map (marked with a TODO), and the thread asks for a way to access cache contents through LookupCache instead (e.g. an iterator() or a default contents(BiConsumer) method) so the hard type cast can ...
null
FasterXML__jackson-databind__4159
FasterXML/jackson-databind
4,159
defect
a1b7557b61cde06fa46a63e3e3cc864afeff8d0e
a5ff9dd1702247066a43db78a101d0ed070ff25a
Add new `DefaultTyping.NON_FINAL_AND_ENUMS` to allow Default Typing for `Enum`s
As title says, allow default type handler for Enum's. Fixes #3569
diff --git a/src/main/java/com/fasterxml/jackson/databind/ObjectMapper.java b/src/main/java/com/fasterxml/jackson/databind/ObjectMapper.java index 0ce19c8689..919fccb7f6 100644 --- a/src/main/java/com/fasterxml/jackson/databind/ObjectMapper.java +++ b/src/main/java/com/fasterxml/jackson/databind/ObjectMapper.java @@ -3...
3
3
1
[{"id": "G0", "claim": "Making NON_FINAL also apply to Enums is wrong because Enums are definitely final types.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "If the change is applied at all, it must target the 2.16 branch rather than 2.15, because chang...
null
FasterXML__jackson-databind__4335
FasterXML/jackson-databind
4,335
defect
e860795f8d8523ff71598bc30751efd62b87e6ed
8c770eda6c5d9103f3e0795f0a8e101e7a9df91a
Make `@JsonAlias` be respected by polymorphic deduction for deserialization
fixes #4327
diff --git a/src/main/java/com/fasterxml/jackson/databind/jsontype/impl/AsDeductionTypeDeserializer.java b/src/main/java/com/fasterxml/jackson/databind/jsontype/impl/AsDeductionTypeDeserializer.java index 633e2ace24..04a370b7e7 100644 --- a/src/main/java/com/fasterxml/jackson/databind/jsontype/impl/AsDeductionTypeDeser...
2
2
0
[{"id": "G0", "claim": "_findAliases should not access field, setter and getter members separately since annotations are already merged by POJOPropertyBuilder, so property.getPrimaryMember() should be all that is needed.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G...
null
FasterXML__jackson-databind__4379
FasterXML/jackson-databind
4,379
defect
f57efed4894b32866a96b7fae21bf8bbd099042a
883190c97cb4a37311c9a0a0a7fb2a16310ddc4a
support nulls in TextNode equals
relates to #4378 @cowtowncoder since this is a bug - could we consider backporting this?
diff --git a/src/main/java/com/fasterxml/jackson/databind/node/TextNode.java b/src/main/java/com/fasterxml/jackson/databind/node/TextNode.java index 4ed2c91b97..9186236257 100644 --- a/src/main/java/com/fasterxml/jackson/databind/node/TextNode.java +++ b/src/main/java/com/fasterxml/jackson/databind/node/TextNode.java @...
1
1
0
[{"id": "G0", "claim": "The hand-written null-handling ternary in TextNode.hashCode() could be replaced with the JDK convenience method Objects.hashCode().", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
FasterXML__jackson-databind__4558
FasterXML/jackson-databind
4,558
defect
daf85f27bc46d15f6b7b625eee13ac29360dac44
a0da86f83af2b6a60c70b1ac070f8806b35d0213
Allow `@JsonAnySetter` on Creators
resolves #562 This version is more adherent to existing call flow and simply extends existing implementations, such as.... - Introduction of `SettableAnyProperty` subclasses `JsonNodeParameterAnyProperty` and `MapParameterAnyProperty` - Introduction of `SettableAnyProperty` methods `getParameterIndex()` `create...
diff --git a/src/main/java/com/fasterxml/jackson/databind/deser/BasicDeserializerFactory.java b/src/main/java/com/fasterxml/jackson/databind/deser/BasicDeserializerFactory.java index 71a0f635ee..69f51fc2ef 100644 --- a/src/main/java/com/fasterxml/jackson/databind/deser/BasicDeserializerFactory.java +++ b/src/main/java/...
8
6
3
[{"id": "G0", "claim": "Multiple any-setter detection is done via per-parameter introspection in `_addSelectedPropertiesBasedCreator`, which loses any-setter information and forces re-introspection later; the reviewer asks that duplicates be detected later instead (e.g. in `_resolveAnySetter`), treating a Field/Method ...
null
FasterXML__jackson-databind__4565
FasterXML/jackson-databind
4,565
defect
fc67817a0525d123b2f600c356ce5675a1da5b4c
53b31e187e22057793dfe2f0d95a0ed8e7cf3275
Allow Enum self as field when Enum with `JsonFormat.Shape.OBJECT`
fixes #4564
diff --git a/src/main/java/com/fasterxml/jackson/databind/ser/BasicSerializerFactory.java b/src/main/java/com/fasterxml/jackson/databind/ser/BasicSerializerFactory.java index bcccd9eaa0..e609d95d4d 100644 --- a/src/main/java/com/fasterxml/jackson/databind/ser/BasicSerializerFactory.java +++ b/src/main/java/com/fasterxm...
1
1
0
[{"id": "G0", "claim": "Static methods and fields should not become or be part of POJO properties, so the reviewer questions how a static accessor can be the thing left for `_removeEnumSelfReferences` to remove (and by implication whether a static-only guard is the right check here).", "category": "correctness", "verdi...
null
FasterXML__jackson-databind__4572
FasterXML/jackson-databind
4,572
defect
b744256b8629239defaeb4f7dd97b0d9eefb31fe
8995e93bf91199299985d21b82315256bb49156d
Change `MapperFeature.SORT_PROPERTIES_ALPHABETICALLY` default to true (3.x)
As described in JSTEP-2, (`false` really doesn't make much sense since it is unstable, and arbitrary based on JVM/JDK) false doesn't make sense.
diff --git a/src/main/java/tools/jackson/databind/MapperFeature.java b/src/main/java/tools/jackson/databind/MapperFeature.java index ac2503393c..0ad5e0c629 100644 --- a/src/main/java/tools/jackson/databind/MapperFeature.java +++ b/src/main/java/tools/jackson/databind/MapperFeature.java @@ -277,10 +277,11 @@ public enum...
4
1
0
[{"id": "G0", "claim": "The javadoc on the changed SORT_PROPERTIES_ALPHABETICALLY default should mention the difference between 2.x and 3.0, as done for another feature.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The updated test expectation s...
null
FasterXML__jackson-databind__4594
FasterXML/jackson-databind
4,594
defect
8d96e83848e9060540a58f56b1df11aefecc72d1
57b780138ed0b9aafbcbdc9abeafef3c52bfe34c
Add JavaDoc and test wrt custom `JsonDeserializer`s `null` handling
Adds JavaDoc and test regarding https://github.com/FasterXML/jackson-databind/issues/4225
diff --git a/src/main/java/com/fasterxml/jackson/databind/JsonDeserializer.java b/src/main/java/com/fasterxml/jackson/databind/JsonDeserializer.java index 108f999954..508f797c5a 100644 --- a/src/main/java/com/fasterxml/jackson/databind/JsonDeserializer.java +++ b/src/main/java/com/fasterxml/jackson/databind/JsonDeseria...
1
1
0
[{"id": "G0", "claim": "The import order in CustomDeserializers4225NullCacheTest.java differs from the project's style guide and should be fixed.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
FasterXML__jackson-databind__4627
FasterXML/jackson-databind
4,627
defect
8c14e0916647128082cd8739d7e87e3884c1aa5e
2b4cf9f5b9187a60ae83fd35636cb6a47a535092
Ignore Records' immutable fields in BeanDeserializerFactory instead of ignoring it in POJOPropertiesCollector, to preserve any annotation info the fields may be carrying.
Proposal for #4626. Turns out Record fields (or rather the annotations on them) are needed for both serialization (https://github.com/FasterXML/jackson-databind/issues/3628, https://github.com/FasterXML/jackson-databind/issues/3895, https://github.com/FasterXML/jackson-databind/issues/3906#issuecomment-1532842582) &...
diff --git a/src/main/java/com/fasterxml/jackson/databind/deser/BeanDeserializerFactory.java b/src/main/java/com/fasterxml/jackson/databind/deser/BeanDeserializerFactory.java index 80d9d492c2..cb9cb872a5 100644 --- a/src/main/java/com/fasterxml/jackson/databind/deser/BeanDeserializerFactory.java +++ b/src/main/java/com...
4
2
2
[{"id": "G0", "claim": "Checking whether an AnnotatedField belongs to a Record should be done at the caller (something like `if (beanDesc.getType().isRecordType()) return null;`), not inside AnnotatedField.isImmutable(), which has to refine the declaring type to answer.", "category": "design", "verdict": "supported", "...
null
FasterXML__jackson-databind__4679
FasterXML/jackson-databind
4,679
defect
c9665f226aa21712224caf75b390f96c6e4fefe5
3d2b6de365f249bf9645b0b762241970f156dc69
Change `EnumNamingStrategy.convertEnumToExternalName()` to take MapperConfig argument
resolve #4664
diff --git a/src/main/java/tools/jackson/databind/EnumNamingStrategies.java b/src/main/java/tools/jackson/databind/EnumNamingStrategies.java index e292d87587..3acab0d69c 100644 --- a/src/main/java/tools/jackson/databind/EnumNamingStrategies.java +++ b/src/main/java/tools/jackson/databind/EnumNamingStrategies.java @@ -1...
2
1
0
[{"id": "G0", "claim": "The Javadoc `@param cls the annotated class` does not say what the class is (presumably the Enum class), so the parameter carries no information and it should be specified.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Not...
null
FasterXML__jackson-databind__4684
FasterXML/jackson-databind
4,684
defect
c995671584e064e4985b3aafec1709d2406b2f59
f3d38b0c59f2044e40c79899180def116ffca76d
fix #4680 : Custom key deserialiser registered for `Object.class` is ignored on nested JSON
fixes #4680 Still have below three tests failing. ```log [ERROR] Errors: [ERROR] DeepNestingUntypedDeserTest.testFormerlyTooDeepUntypedWithArray » StackOverflow [ERROR] DeepNestingUntypedDeserTest.testFormerlyTooDeepUntypedWithObject » StackOverflow [ERROR] TestAbstractTypes.testDefaultingRecursive:137...
diff --git a/src/main/java/com/fasterxml/jackson/databind/deser/std/UntypedObjectDeserializer.java b/src/main/java/com/fasterxml/jackson/databind/deser/std/UntypedObjectDeserializer.java index 3f35982788..896e0dad2e 100644 --- a/src/main/java/com/fasterxml/jackson/databind/deser/std/UntypedObjectDeserializer.java +++ b...
4
4
3
[{"id": "G0", "claim": "The PR author asks whether the maintainer can think of a better approach than the one in createContextual, noting that the null/non-null check for keyDeser is done in two places and that declaring the local variable `untyped` seems unnatural.", "category": "design", "verdict": "supported", "prio...
null
FasterXML__jackson-databind__4689
FasterXML/jackson-databind
4,689
defect
88f4671c1a1cdf96d905f4e80975d1ea22fbe319
c64186382c658816eaa4307591a0a9c05d0a1e94
Fix #4688 2.18.0-rc1 Regression deserializing with no-arg delegating JsonCreator
(fixes #4688) The refactor to bean property introspection in #4515 caused existing no-arg delegatring constructors to fail deserialization. Example from this branch where we test RC releases: https://github.com/palantir/conjure-java/pull/2349 specifically this test: https://github.com/palantir/conjure-java/blob/...
diff --git a/src/main/java/com/fasterxml/jackson/databind/deser/BasicDeserializerFactory.java b/src/main/java/com/fasterxml/jackson/databind/deser/BasicDeserializerFactory.java index ec99b8f7f7..d3730795c5 100644 --- a/src/main/java/com/fasterxml/jackson/databind/deser/BasicDeserializerFactory.java +++ b/src/main/java/...
2
1
0
[{"id": "G0", "claim": "It is unclear whether the no-arg delegating creator should be registered as a property creator with no properties or via creators.setDefaultCreator, the former seeming more explicit but the latter closer to the previous implementation.", "category": "design", "verdict": "supported", "priority": ...
null
FasterXML__jackson-databind__4722
FasterXML/jackson-databind
4,722
defect
e151a0dde55e7b453f1c0fcf4961a564dfe2c059
1d24c264dc06a3f629f4bd161cb47c2512344e3d
Fix issues 4697 and 2461 (`@JsonUnwrapped` caching)
I recently raised a bug ([4697](https://github.com/FasterXML/jackson-databind/issues/4697)) and have now had some time to investigate the issue. Although this is my first contribution, I noticed that when we obtain a serializer from the case, the name transformation is reset in the _findAndAddDynamic method of Unwrappi...
diff --git a/src/main/java/com/fasterxml/jackson/databind/ser/BeanPropertyWriter.java b/src/main/java/com/fasterxml/jackson/databind/ser/BeanPropertyWriter.java index 812c239032..21ad497780 100644 --- a/src/main/java/com/fasterxml/jackson/databind/ser/BeanPropertyWriter.java +++ b/src/main/java/com/fasterxml/jackson/da...
4
3
1
[{"id": "G0", "claim": "The statically imported `emptyForProperties()` (and the call sites below it) should be reverted to how it was, since the change is unrelated to this pull request.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new cod...
null
FasterXML__jackson-databind__4744
FasterXML/jackson-databind
4,744
defect
80e84c0b176936c6e99aab407afca73e7f9913ce
b2159ec9a87612a0d0273ff48c0ab61e43f566a6
Regression fix for #4741 `Include.NON_DEFAULT` setting used on POJO, empty values are not included in json if default is null
demonstrates "possible" solution that resolves #4741
diff --git a/release-notes/VERSION-2.x b/release-notes/VERSION-2.x index 23c805744b..7cdba12a45 100644 --- a/release-notes/VERSION-2.x +++ b/release-notes/VERSION-2.x @@ -6,6 +6,10 @@ Project: jackson-databind 2.18.1 (WIP-2024) +#4741: When `Include.NON_DEFAULT` setting is used on POJO, empty values + are not inc...
1
1
1
[{"id": "G0", "claim": "Decide when to suppress empty values by relying on `_useRealPropertyDefaults` (which is true only when POJO-level settings are in use, not global-, per-type or property) instead of re-checking configuration settings — the simpler check cowtowncoder figured out and _thinks_ works.", "category": "...
null
FasterXML__jackson-databind__4857
FasterXML/jackson-databind
4,857
defect
f5f17418fd2263ced4b29eca5023b25abe3fc7be
5fe309933184f60d20e437b9de9213406f1a47f2
[databind#4849] Allow standard defaultTyping with `EnumSet<E>`
resolves #4849 possible backport to 2.17
diff --git a/release-notes/VERSION-2.x b/release-notes/VERSION-2.x index c38ca1aecf..3661c8628f 100644 --- a/release-notes/VERSION-2.x +++ b/release-notes/VERSION-2.x @@ -12,6 +12,9 @@ Project: jackson-databind (fix by Joo-Hyuk K) #4844: Fix wrapped array hanlding wrt `null` by `StdDeserializer` (fix by Stanislav ...
2
2
1
[{"id": "G0", "claim": "The AsArrayTypeDeserializer change is not a proper fix for the EnumSet failure, which may stem from #4214 making EnumSetDeserializer expect type ids for the EnumSet and every Enum it contains while EnumSetSerializer does not write them.", "category": "design", "verdict": "supported", "priority":...
null
FasterXML__jackson-databind__4861
FasterXML/jackson-databind
4,861
defect
a9b9f9199752fb650ab0c596cbfb6a5dfc24903b
4787287d1ab77f26f159e08c42af18e5db6052af
Fix for #4860, ConstructorDetector with single arg constructor not working since 2.18
fixes #4860
diff --git a/src/main/java/com/fasterxml/jackson/databind/deser/BasicDeserializerFactory.java b/src/main/java/com/fasterxml/jackson/databind/deser/BasicDeserializerFactory.java index fac775d75a..4fe5b4b92c 100644 --- a/src/main/java/com/fasterxml/jackson/databind/deser/BasicDeserializerFactory.java +++ b/src/main/java/...
2
2
1
[{"id": "G0", "claim": "The new test should not be added at the main package level since it is creators-related; move it to the creators test package.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test does not verify which constructor is u...
null
FasterXML__jackson-databind__4865
FasterXML/jackson-databind
4,865
defect
30bb56d3def2cd7f782bbe10bd6ec7f33b22870c
92d44f43d63b4c985b4d9ba985fe9acbad70bc44
Add spliterator support in `JsonNode`
relates to https://github.com/FasterXML/jackson-core/pull/1369 * Probably needs the jackson-core PR merged first. * I can add test coverage in a follow up PR or add it here if preferred. * the initial state of the PR is for discussion about the source changes
diff --git a/src/main/java/tools/jackson/databind/JsonNode.java b/src/main/java/tools/jackson/databind/JsonNode.java index 081ba18f90..712b964bd6 100644 --- a/src/main/java/tools/jackson/databind/JsonNode.java +++ b/src/main/java/tools/jackson/databind/JsonNode.java @@ -230,6 +230,11 @@ public Iterator<String> property...
2
2
0
[{"id": "G0", "claim": "The new method `elementsSpliterator()` should be named after the value it iterates (e.g. `valueSpliterator()`/`value(s)Spliterator()`), following `valueStream()`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new met...
null
FasterXML__jackson-databind__4929
FasterXML/jackson-databind
4,929
defect
2e741764c7ad56beb015a384d1c57dfc32d66864
355dcf6b8b737cdd74b2161a971cab0ca950c0a7
Fixed so that KeyDeserializer set by annotation is not overwritten by KeyDeserializer set in the mapper
This is a fix for #4444 and is also relevant to https://github.com/FasterXML/jackson-module-kotlin/issues/777 .
diff --git a/src/main/java/com/fasterxml/jackson/databind/deser/BasicDeserializerFactory.java b/src/main/java/com/fasterxml/jackson/databind/deser/BasicDeserializerFactory.java index 50d6d03055..d98af48b86 100644 --- a/src/main/java/com/fasterxml/jackson/databind/deser/BasicDeserializerFactory.java +++ b/src/main/java/...
6
5
1
[{"id": "G0", "claim": "Removing the second `introspectClassAnnotations(type.getRawClass())` fallback may be a problem in cases where some customization has been done, and the author asks for confirmation that it is unnecessary.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}...
null
FasterXML__jackson-databind__4948
FasterXML/jackson-databind
4,948
defect
a204131005008e42d953a929499089f7f5221218
0a4984692826358aa3c86844774012b381ad1d20
Fix #4938 Allow `@JsonCreator` to return `null`
resolves #4938
diff --git a/src/main/java/com/fasterxml/jackson/databind/deser/BeanDeserializer.java b/src/main/java/com/fasterxml/jackson/databind/deser/BeanDeserializer.java index aac1955076..49cb86ead0 100644 --- a/src/main/java/com/fasterxml/jackson/databind/deser/BeanDeserializer.java +++ b/src/main/java/com/fasterxml/jackson/da...
1
1
1
[{"id": "G0", "claim": "When the creator returns null, the deserializer must not just return immediately: properties other than the Creator properties (ones buffered before the creator is called and ones that may come after) need to be processed, and the remaining content of the JSON Object must be consumed or skipped ...
null
FasterXML__jackson-databind__4968
FasterXML/jackson-databind
4,968
defect
dd929e2221a4c016cb289c39558bf5a46f739120
f0c2f60d946a825b24983eb36d16b23837c349f7
Fix #4771: Support OBJECT shape for QNAME serialization and deserialization.
This commit fixes #4771 by supporting the JsonFormat OBJECT shape during serialization and deserialization.
diff --git a/src/main/java/com/fasterxml/jackson/databind/ext/CoreXMLDeserializers.java b/src/main/java/com/fasterxml/jackson/databind/ext/CoreXMLDeserializers.java index 76609a3914..c69857328f 100644 --- a/src/main/java/com/fasterxml/jackson/databind/ext/CoreXMLDeserializers.java +++ b/src/main/java/com/fasterxml/jack...
2
2
2
[{"id": "G0", "claim": "The QName deserializer should throw a JsonMappingException subtype via DeserializationContext (ctxt.reportInputMismatch) instead of JsonParseException, and single-quote 'localPart' in the message.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id...
null
FasterXML__jackson-databind__4975
FasterXML/jackson-databind
4,975
defect
3c153f09d768661172d9fe5745c43507801062fd
1a44d0f4601ca5ad0a6b8326f814fdb3c2357eeb
Add new `convertValue` with `context`
resolves #4915
diff --git a/src/main/java/com/fasterxml/jackson/databind/deser/std/StdDelegatingDeserializer.java b/src/main/java/com/fasterxml/jackson/databind/deser/std/StdDelegatingDeserializer.java index 39e7cf1c03..c280da4216 100644 --- a/src/main/java/com/fasterxml/jackson/databind/deser/std/StdDelegatingDeserializer.java +++ b...
1
1
0
[{"id": "G0", "claim": "In the new convertValue overload in StdDelegatingDeserializer, the context parameter should be placed before the delegate value parameter instead of after it.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null