Bug 444581

Summary: [xtype] foo.Foo$Bar cannot be resolved to a type.
Product: [Modeling] TMF Reporter: Anton Kosyakov <anton>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: karsten.thoms
Version: 2.8.0Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard:
Attachments:
Description Flags
Sample Project none

Description Anton Kosyakov CLA 2014-09-19 07:26:53 EDT
I have a java class with '$' character in the name:
package foo;

public class Foo$Bar {

}

Cross reference to the such class from Xtend class can not be resolved:
package test

class Test$Test {
	
	foo.Foo$Bar bar; // foo.Foo$Bar cannot be resolved to a type.
	
}
Comment 1 Anton Kosyakov CLA 2014-09-19 07:32:33 EDT
If a cross referenced type belongs to the default package then it does not work even if a name start from '$' character:

public class $Foo {

}

Xtend class:
class Test {

	$Foo foo // $Foo cannot be resolved to a type.
		
}
Comment 2 Karsten Thoms CLA 2016-09-19 06:37:32 EDT
Created attachment 264249 [details]
Sample Project