NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

[platform-dev] PropertySupport.Reflection and IllegalArgumentException on setValue()

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users
View previous topic :: View next topic  
Author Message
Halvor Platou
Posted via mailing list.





PostPosted: Thu May 31, 2012 8:59 am    Post subject: [platform-dev] PropertySupport.Reflection and IllegalArgumentException on setValue() Reply with quote

Hello.

I have some problems using PropertySupport.Reflection.

When using:

PopertySupport.Reflection<Double> p = new PopertySupport.Reflection<Double>(obj, double.class, "someDoubleProp");

If the setSomeDoubleProp() method throws an IllegalArgumentException (e.g. value < 0.0) the platform will display an empty info box when an illegal value is entered in the property sheet, even if the exception contains some reasonable error message:




Am I doing something wrong or should the info box contain the exception message?


Halvor Platou
Technical Coordinator CyberSea Technology
Marine Cybernetics
www.marinecyb.com



image001.png
 Description:
 Filesize:  17.04 KB
 Viewed:  467 Time(s)

image001.png


Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo