Let’s say I have a null java.lang.Double (object) to pass through CORBA. CORBA doesn’t accept null for the double primitive type, so I’ll have to map it to another double (primitive) value.
What is the best value I should use?
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is a difficult question to answer, especially if all double values are valid for whatever this variable will be representing.
The best bet would be to choose Double.MIN_VALUE or some value that will most likely not be used.
However, you need to make sure this value will also be representable in the other languages/hardware that will be interfacing with CORBA.