Bug 444581 - [xtype] foo.Foo$Bar cannot be resolved to a type.
Summary: [xtype] foo.Foo$Bar cannot be resolved to a type.
Status: NEW
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.8.0   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2014-09-19 07:26 EDT by Anton Kosyakov CLA
Modified: 2016-09-19 06:37 EDT (History)
1 user (show)

See Also:


Attachments
Sample Project (5.93 KB, application/x-zip-compressed)
2016-09-19 06:37 EDT, Karsten Thoms CLA
no flags Details

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