Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 351130

Summary: Type of the method default value can be different from method type
Product: [Technology] Tigerstripe Reporter: Maria Kolchinskaja <mshulgina>
Component: UIAssignee: Project Inbox <tigerstripe.ui-inbox>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: chrhartl, nmehrega, skanton
Version: unspecified   
Target Milestone: 0.5M0   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Maria Kolchinskaja CLA 2011-07-05 00:57:08 EDT
Build Identifier: 

There is no check if the method default value is not of the method type:  

1. Create Tigerstripe project with Entity artifact
2. Add method for the entity
3. Uncheck 'isVoid' checkbox and set 'Type' as 'Int' and set default value as 'test'
4. Save changes - no warning message is displayed

Reproducible: Always
Comment 1 Chris Hartley CLA 2011-07-05 19:47:02 EDT
This should re-use the validation that we added in

https://bugs.eclipse.org/bugs/show_bug.cgi?id=232727
Comment 2 Anton Salnik CLA 2011-07-06 04:18:55 EDT
Validation for method's default return value added.
Comment 3 Anton Salnik CLA 2011-07-08 08:15:29 EDT
Also added validation for an argument's default value.
Comment 4 Maria Kolchinskaja CLA 2011-07-11 06:41:37 EDT
Verified