This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 351130 - Type of the method default value can be different from method type
Summary: Type of the method default value can be different from method type
Status: CLOSED FIXED
Alias: None
Product: Tigerstripe (Archived)
Classification: Technology
Component: UI (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: 0.5M0   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-05 00:57 EDT by Maria Kolchinskaja CLA
Modified: 2011-07-15 17:04 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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