Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 329888 - Missing compiler error when using wrong field specifier in Callout to field (long)
Summary: Missing compiler error when using wrong field specifier in Callout to field (...
Status: VERIFIED FIXED
Alias: None
Product: Objectteams
Classification: Tools
Component: OTJ (show other bugs)
Version: 0.7.1   Edit
Hardware: PC Linux
: P3 minor (vote)
Target Milestone: 0.8 M4   Edit
Assignee: Stephan Herrmann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-10 07:16 EST by Jan Marc Hoffmann CLA
Modified: 2011-05-10 09:19 EDT (History)
0 users

See Also:
stephan.herrmann: iplog+


Attachments
Test and fix (4.79 KB, patch)
2010-11-10 18:05 EST, Stephan Herrmann CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Marc Hoffmann CLA 2010-11-10 07:16:58 EST
Build Identifier: 

The following code does not trigger a compiler error:

public class A {
	String value;
}

public team class MyTeam2 {
	protected class MyRole playedBy A {
		String getValue() -> get void value; 
	}
}

There should be an error @ get void value; Since the field value is of the type String and not void or anything else. Everything works here. The check seems not be implemented.

greetings
Jan Marc

Reproducible: Always
Comment 1 Stephan Herrmann CLA 2010-11-10 18:05:42 EST
Created attachment 182859 [details]
Test and fix

Well spotted.

Actually the check was already in place, it just used a wrong 
value for comparison.

Thanks, Jan Marc.
Comment 2 Stephan Herrmann CLA 2010-11-10 18:14:54 EST
Released for M4 as r1018 f.
Comment 3 Stephan Herrmann CLA 2010-12-16 14:15:53 EST
Verified for M4 using build 201012150343
Comment 4 Stephan Herrmann CLA 2011-05-10 09:19:08 EDT
Setting iplog flag to acknowledge contribution of testcase in comment 0.