Bugfix: OverloadingTest
This commit is contained in:
parent
db93a1dfe1
commit
ae01af7a40
@ -78,15 +78,12 @@ public class Method extends Field implements IItemWithOffset, TypeInsertable
|
||||
private Modifiers modifiers;
|
||||
protected static Logger inferencelog = Logger.getLogger("inference");
|
||||
protected static Logger parserlog = Logger.getLogger("parser");
|
||||
|
||||
protected Menge<org.apache.commons.bcel6.generic.Type[]> createdMethods = new Menge<>();
|
||||
|
||||
public Method(int offset) {
|
||||
super(offset);
|
||||
}
|
||||
|
||||
public Method(String name, Type returnType, ParameterList parameterList,
|
||||
Block block, GenericDeclarationList gtvDeclarations, int offset) {
|
||||
public Method(String name, Type returnType, ParameterList parameterList, Block block, GenericDeclarationList gtvDeclarations, int offset) {
|
||||
this(offset);
|
||||
/*
|
||||
* if(parameterList != null)parameterList.parserPostProcessing(this);
|
||||
|
@ -602,17 +602,18 @@ public class RefType extends ObjectType implements IMatchable
|
||||
sb.append(((RefType) type).getCombinedType(cg, rs).replace(".", "%"));
|
||||
}else if(type instanceof TypePlaceholder){
|
||||
sb.append(((TypePlaceholder) type).getBytecodeType(cg, rs).toString().replace(".", "%"));
|
||||
}else if(type instanceof WildcardType){
|
||||
return this.getName().toString();
|
||||
}else{
|
||||
sb.append(type.getBytecodeType(cg, rs).toString().replace(".", "%"));
|
||||
}
|
||||
|
||||
sb.append("%");
|
||||
}
|
||||
}else{
|
||||
sb.append(this.getName().toString());
|
||||
}
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
return sb.toString();
|
||||
return sb.append(this.getName().toString()).toString();
|
||||
}
|
||||
|
||||
public GenericClassType getGenericClassType(){
|
||||
|
@ -17,11 +17,6 @@ import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
|
||||
import de.dhbwstuttgart.typeinference.exceptions.DebugException;
|
||||
import de.dhbwstuttgart.typeinference.exceptions.TypeinferenceException;
|
||||
|
||||
class Test {
|
||||
void methode(ArrayList<? super Integer> t){
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
//TODO: Die Klasse Type muss abstract werden!
|
||||
// ino.class.Type.26716.declaration
|
||||
|
@ -1,6 +1,6 @@
|
||||
class OL {
|
||||
|
||||
m(x) { return x + x; }
|
||||
|
||||
Boolean m(Boolean x) {return x; }
|
||||
m(Boolean x) {return x; }
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user