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.

QuarkusTestExtension#runExtensionMethod() should only deep clone when necessary

See original GitHub issue

Description QuarkusTestExtension#runExtensionMethod() appears to do a deep-clone of all arguments of a given test method. If the parameter class is the same in both class loaders (i.e. both loaded it through a common ancestor class loader) this wouldn’t be necessary and avoiding the deep-clone would also be desirable because not all objects can be cloned (see #9677).

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
geoandcommented, Jun 22, 2020

@stuartwdouglas has already chatted with the JUnit team about this, so they are aware of our case

0reactions
geoandcommented, Jun 22, 2020

Hopefully we won’t have to create a more clever cloning algorithm, but it may come to that at some point…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Should you deep clone nested properties?
You don't need to deep clone when mutating state. If you only need to change one of the basic props of your object,...
Read more >
Methods for deep cloning objects in JavaScript - LogRocket Blog
There are several ways to shallow clone objects in JavaScript, but deep cloning objects is trickier. We highlight several methods to do so....
Read more >
Deep-copying in JavaScript using structuredClone - web.dev
The platform already needed the ability to create deep copies of JavaScript values in a couple of places: Storing a JS value in...
Read more >
How Deep Cloning Objects in JavaScript Works - DigitalOcean
Reassigning objects to new variables only creates a shallow copy of the original object. In the next step, you will explore how looping...
Read more >
In Redux, is it necessary to do deep copy - Stack Overflow
Can I do it as above? that I just assign the whole object to data without copying? or const rootReducer = (state =...
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