Skip to content

Ambigous Method Invocation for Boxed / Non-Boxed Types #19

@bytefish

Description

@bytefish

I have a problem with the current API design, which also made me rewrite some functions in PgBulkInsert. We support both writing mapInteger with an Integer and a primitive int. This is done by using a custom Lambda "ToInt" function. But this leads to the ugly side-effect, that the JVM cannot resolve the correct method:

image

Basically I would like to rename the methods to:

  • mapBooleanPrimitive
  • mapFloatPrimitive
  • ...

So this would not happen anymore. And one can easily choose to use the boxed / unboxed type.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions