Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 332567 - Numeric Promotion is not following the spec
Summary: Numeric Promotion is not following the spec
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P2 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-14 15:12 EST by Pascal Filion CLA
Modified: 2022-06-09 10:22 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pascal Filion CLA 2010-12-14 15:12:32 EST
Build Identifier: 2.2.0.v20101201-r8590

Based on JPA 2.0 spec, section 4.8.6, page 165, Double takes precedence, then Float, BigDecimal, BigInteger, etc. But in BasicTypeHelperImpl.extendedBinaryNumericPromotion(), BigDecimal takes precedence over Double, then BigInteger (if the other number is not Float). So the promotion is not the same as what the spec says.

Reproducible: Always

Steps to Reproduce:
1. Go and look at the code in BasicTypeHelperImpl
Comment 1 Tom Ware CLA 2010-12-23 11:42:15 EST
Setting target and priority.  See the following page for the meanings of these fields:

http://wiki.eclipse.org/EclipseLink/Development/Bugs/Guidelines
Comment 2 Eclipse Webmaster CLA 2022-06-09 10:22:16 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink