abreslav / java2ecore

Automatically exported from code.google.com/p/java2ecore
0 stars 0 forks source link

When some unknown type is used in superclass list and then as a feature type, it gives out two different types #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

Please use labels and text to provide additional information.

Original issue reported on code.google.com by abreslav on 19 Nov 2007 at 6:38

GoogleCodeExporter commented 9 years ago
This appears in the following example:
package cocoo;
import java.util.Collection;

import org.abreslav.java2ecore.annotations.EPackage;
import org.abreslav.java2ecore.annotations.types.Class;

@EPackage(
        nsPrefix="cocoo",   
        nsURI="http://sdfsad.com"
)  
public class cocoo {

}
abstract @Class interface C<T> {
    class _<T> {
        Comparable m;
    }  
}

interface A extends Collection<String> {} 
interface B extends Comparable<Integer> {} 

Original comment by abreslav on 19 Nov 2007 at 6:42

GoogleCodeExporter commented 9 years ago
Decision: don't allow to use unknown types as superclasses

Original comment by abreslav on 24 Nov 2007 at 5:25

GoogleCodeExporter commented 9 years ago

Original comment by abreslav on 24 Nov 2007 at 7:37