Comments (2)
The reason for this is an optimization that came with 0.10.0.
For members with basic types derived codecs now don't rely on the implicit codecs, but read them directly from the reader, which circumvents boxing.
So, for all non-basic types custom codecs are still picked up as before.
from borer.
Theoretically this could be fixed by running implicit resolution at the macros call site for all encoders/decoders, including the ones for basic types, and comparing whether they match the default definitions. If they do we can take the shortcut, otherwise we need to go through the custom codecs.
However, at this point I'm not sure that there are sufficiently important real use cases for overriding the basic codecs to justify this investment...
from borer.
Related Issues (20)
- StringNumbers, StringBooleans - boxed does not work HOT 1
- StringNumbers - BigInt, BigDecimal not supported HOT 1
- Best way to write a "Codec[Any]" HOT 2
- Java 11 really needed? HOT 6
- DoS vulnerability of borer-compat-circe HOT 1
- Exception when compiling with Scala 3 HOT 7
- Warnings in generated codecs when `-Wnonunit-statement` option is used for Scala 2.13.x build
- Extra input fields cause error while decoding to empty case classes and case objects of an ADT HOT 5
- StackOverflowError when compiling with Scala 3 HOT 5
- When the encoded byte array exceeds 4m bytes, decode fails HOT 6
- Enable configuration of custom logic for transformation of map keys HOT 1
- Use Scala 3 syntax in documentation HOT 1
- Invalid codec derived - scala 3 - MatchError HOT 1
- deriveAllCodecs fails for no apparent reason HOT 4
- Incorrect order of generated typeclasses for subnodes in `deriveAll`
- `deriveAll` should fail with compile-time error on bad ADTs
- An ode to borer, or: Please add support for scala-native HOT 13
- Add compat-pekko, as alternative to compat-akka HOT 3
- Possible issue with scala-3: dotty.tools.FatalError: cannot resolve reference HOT 1
- Issue with a Java-17 function calling Scala-3.3.0 version of "Codec#encoder()" HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from borer.