Fehler vom vorigen korriert Commit

modified:   ../resources/bytecode/javFiles/Matrix.jav
	modified:   ../src/main/java/de/dhbwstuttgart/typeinference/constraints/Constraint.java
	modified:   ../src/main/java/de/dhbwstuttgart/typeinference/constraints/ConstraintSet.java
	modified:   ../src/test/java/TestComplete.java
This commit is contained in:
pl@gohorb.ba-horb.de 2024-05-08 09:07:22 +02:00
parent 154d4823e4
commit 021b7ec9fe
4 changed files with 5 additions and 4 deletions

View File

@ -1,4 +1,4 @@
import java.util.AbstractList;
import java.util.List;
import java.util.Vector;
import java.lang.Integer;
//import java.lang.Float;

View File

@ -44,7 +44,7 @@ public class Constraint<A> extends HashSet<A> {
}
public Boolean isOverridden() {
return isInherited;
return isOverridden;
}
public Constraint<A> getExtendConstraint() {

View File

@ -71,7 +71,7 @@ public class ConstraintSet<A> {
for(Set<Constraint<A>> oderConstraint : oderConstraints){
newOder.add(
oderConstraint.parallelStream().map((Constraint<A> as) -> {
oderConstraint.stream().map((Constraint<A> as) -> {
Constraint<B> newConst = as.stream()
.map(o)

View File

@ -4,6 +4,7 @@ import org.junit.Ignore;
import org.junit.Test;
import java.lang.reflect.*;
import java.util.AbstractList;
import java.util.Arrays;
import java.util.List;
import java.util.Vector;
@ -263,7 +264,7 @@ public class TestComplete {
var instanceOfClass_m2 = matrix.getDeclaredConstructor(Vector.class).newInstance(vv1);
var mul = matrix.getDeclaredMethod("mul", Vector.class);
var mul = matrix.getDeclaredMethod("mul", List.class);
var result = mul.invoke(instanceOfClass_m1, instanceOfClass_m2);
System.out.println(instanceOfClass_m1.toString() + " * " + instanceOfClass_m2.toString() + " = " + result.toString());