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

Bug 329888

Summary: Missing compiler error when using wrong field specifier in Callout to field (long)
Product: [Tools] Objectteams Reporter: Jan Marc Hoffmann <exelnet>
Component: OTJAssignee: Stephan Herrmann <stephan.herrmann>
Status: VERIFIED FIXED QA Contact:
Severity: minor    
Priority: P3 Flags: stephan.herrmann: iplog+
Version: 0.7.1   
Target Milestone: 0.8 M4   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Test and fix none

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.