question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BeanDeserializerBase::_replaceProperty() should not locate the props index using object from another array

See original GitHub issue

Describe the bug BeanDeserializerBase::resolve(DeserializationContext ctxt) will replace the “creatorProps” props using contextualize props. But the “SettableBeanProperty origProp” is from “_beanProperties”. The “creatorProps” is created as

creatorProps = _valueInstantiator.getFromObjectArguments(ctxt.getConfig());

Version information 2.13.3

To Reproduce The second property “expireTime” is two different object in “creatorProps” & “_beanProperties” image

Expected behavior May consider to compare the property name string instead of the props object.

Additional context This is encountered in Micronaut framework.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
yawkatcommented, Aug 3, 2022

@liang-shen i can understand your description, but please give an example where this is actually problematic.

1reaction
yawkatcommented, Aug 2, 2022

i dont understand the issue, can you give a test case? Also without micronaut please, since we introduce our own modifications to bean scanning in micronaut.

Read more comments on GitHub >

github_iconTop Results From Across the Web

React: How to pass one array item to another array using e ...
I'm just completely stumped. This is where the function is called: {props.data.map(function (i, index) ...
Read more >
Indexed collections - JavaScript - MDN Web Docs - Mozilla
This chapter introduces collections of data which are ordered by an index value. This includes arrays and array-like constructs such as Array objects...
Read more >
How Can I Remove a Specific Item from an Array? - Sentry
There are a few methods you can use to remove specific elements from an array in JavaScript. If the pop() or shift() methods...
Read more >
Accessing Data through Props with Known Key Names in ...
As seen, there are two different objects inside the employee ; To render values inside the array of the object, you can make...
Read more >
Data Structures: Objects and Arrays - Eloquent JavaScript
The elements in an array are stored as the array's properties, using numbers as property names. Because you can't use the dot notation...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found