forked from JavaTX/JavaCompilerCore
Parent von Class ist Sourcefile
This commit is contained in:
parent
50916b5db2
commit
64dce5d814
@ -16,6 +16,7 @@ import de.dhbwstuttgart.parser.JavaClassName;
|
||||
import de.dhbwstuttgart.syntaxtree.Class;
|
||||
import de.dhbwstuttgart.syntaxtree.Constructor;
|
||||
import de.dhbwstuttgart.syntaxtree.Method;
|
||||
import de.dhbwstuttgart.syntaxtree.SourceFile;
|
||||
import de.dhbwstuttgart.syntaxtree.SyntaxTreeNode;
|
||||
import de.dhbwstuttgart.syntaxtree.factory.ASTFactory;
|
||||
import de.dhbwstuttgart.syntaxtree.misc.UsedId;
|
||||
@ -852,8 +853,7 @@ public class RefType extends ObjectType implements IMatchable
|
||||
String combinedType = getCombinedType(cg);
|
||||
if(!combinedType.equals(getName().toString())){
|
||||
// TODO bytecode statt getParentClass die eigene Class?!?!
|
||||
Class classObject = ASTFactory.createClass(getName().toString(), null, ASTFactory.createObjectClass());
|
||||
Class generatedClass = ASTFactory.createClass(getCombinedType(cg), getName().toString(), classObject);
|
||||
Class generatedClass = ASTFactory.createClass(getCombinedType(cg), getName().toString(), new SourceFile());
|
||||
|
||||
cg.addExtraClass(generatedClass.genByteCode(new TypeinferenceResultSet(generatedClass, new Menge<>(), new ResultSet())).getByteCode());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user