Fix "<" or ">" in member name leading to exception

This commit is contained in:
Pavel V. Talanov
2016-02-11 14:33:16 +03:00
parent 69afc2316d
commit 47ceb106c7
4 changed files with 6 additions and 8 deletions
@@ -48,7 +48,7 @@ abstract class KtNamedDeclarationNotStubbed extends KtDeclarationImpl implements
@Override
public Name getNameAsName() {
String name = getName();
return name != null ? Name.guess(name) : null;
return name != null ? Name.identifier(name) : null;
}
@Override
@@ -63,7 +63,7 @@ abstract class KtNamedDeclarationStub<T extends KotlinStubWithFqName<?>> extends
@Override
public Name getNameAsName() {
String name = getName();
return name != null ? Name.guess(name) : null;
return name != null ? Name.identifier(name) : null;
}
@Override