ceylon/ceylon-spec — Issue #164: Issue with ProducedType.getProducedTypeQualifiedName()
Author: FroMage
Created: 2012-02-06 11:11:33+00:00
State: open
Labels: bug, high priority

For inner classes I get really wrong qualified names such as
com.redhat.ceylon.compiler.java.test.model.InnerClassContainer.com.redhat.ceylon.compiler.java.test.model.InnerClassContainer.objectMember
if I use ProducedType.getProducedTypeQualifiedName() unless I change
this:

```

diff --git a/src/com/redhat/ceylon/compiler/typechecker/model/ProducedType.java b/src/com/redhat/ceylon/compiler/typechecker/model/ProducedType.java
index 7a02141..ae5c8bb 100644
--- a/src/com/redhat/ceylon/compiler/typechecker/model/ProducedType.java
+++ b/src/com/redhat/ceylon/compiler/typechecker/model/ProducedType.java
@@ -1149,10 +1149,6 @@ public class ProducedType extends ProducedReference {
return null;
}
String producedTypeName = "";
- if (getDeclaration().isMember()) {
- producedTypeName += getQualifyingType().getProducedTypeQualifiedName();
- producedTypeName += ".";
- }
producedTypeName += getDeclaration().getQualifiedNameString();
if (!getTypeArgumentList().isEmpty()) {
producedTypeName += "<";
```