Bug 409850 - missing type validation for ===
Summary: missing type validation for ===
Status: NEW
Alias: None
Product: Xtend
Classification: Tools
Component: Core (show other bugs)
Version: 2.4.1   Edit
Hardware: PC Mac OS X
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-04 10:02 EDT by Moritz Eysholdt CLA
Modified: 2013-06-04 10:02 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Moritz Eysholdt CLA 2013-06-04 10:02:17 EDT
the snippet

-----------
class Foo {
	def x() {
		MyString === Class
	}
}
-----------

compiles to 

----------
public class Foo {
  public boolean x() {
    boolean _tripleEquals = (MyString.class == Class.class);
    return _tripleEquals;
  }
}
-----------

and on the Java side there is the error: Incompatible operand types Class<MyString> and Class<Class>