Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] EL pick wrong converter for parameterized type

På mandag 19. august 2013 kl. 15:11:16, skrev Guy Pelletier <guy.pelletier@xxxxxxxxxx>:
Hi Andreas,

Does the fix for bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=412331 fix this?

Are you running against a nightly build of 2.5.1?

Could be another hole in the converter processing logic, if so, can you enter another bug with example.
 
Yes, I'm running against nightly build of 2.5.1 (2.5.1-SNAPSHOT from sonatype).
 
The error in this thread isn't EL's fault, but a result of how Scala encodes primitive types passed as type-parameters to Option. Option[Int] gets the byte-code signature Option[java.lang.Object] and not Option[java.lang.Integer] as one might think. Therefore it's impossible for EL to distinguish between Option[Int] and Option[Long] which results in this error. Option[DateTime] and Option[String] work fine as they are reference-types.
 
I consider this issue closed.
 
--
Andreas Joseph Krogh <andreak@xxxxxxxxxxxx>      mob: +47 909 56 963
Senior Software Developer / CTO - OfficeNet AS - http://www.officenet.no
Public key: http://home.officenet.no/~andreak/public_key.asc

Back to the top