Commit 8e47b3c8 authored by Lionel Seinturier's avatar Lionel Seinturier
Browse files

Bug fix: generate generic types.

parent 389f5448
......@@ -29,6 +29,7 @@ import java.lang.reflect.Modifier;
import org.objectweb.fractal.api.type.InterfaceType;
import org.objectweb.fractal.juliac.ClassGeneratorItf;
import org.objectweb.fractal.juliac.Juliac;
import org.objectweb.fractal.juliac.Utils;
import org.objectweb.fractal.juliac.desc.MembraneDesc;
import org.objectweb.fractal.juliac.ucf.UnifiedClass;
import org.objectweb.fractal.juliac.ucf.UnifiedMethod;
......@@ -64,13 +65,25 @@ extends ServerInterfaceClassGenerator {
@Override
public String getSuperClassName() {
/*
/*
* The generated client interface extends the class implementing the
* server interface of the same type.
*/
ClassGeneratorItf cg =
new ServerInterfaceClassGenerator(it,membraneDesc,mergeable,jc);
String name = cg.getTargetClassName();
/*
* Add type parameters if any.
*/
UnifiedClass proxycl = jc.create(it.getFcItfSignature());
String[] tpnames = proxycl.getTypeParameterNames();
if( tpnames.length != 0 ) {
String s = Utils.getTypeParameterNamesSignature(tpnames);
name += s;
}
return name;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment