You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
==> src/main/java/de/walkmod/typedlist/TypedList.java <==
package de.walkmod.typedlist;
import java.util.List;
import de.walkmod.typedlist.util.CollectionUtil;
public class TypedList {
public void setList(List<String> list) {
}
public void m() {
List<String> l = null;
setList(CollectionUtil.makeList(l));
}
}
==> src/main/java/de/walkmod/typedlist/util/CollectionUtil.java <==
package de.walkmod.typedlist.util;
import java.util.Collection;
import java.util.Enumeration;
import java.util.Iterator;
import java.util.List;
import javax.annotation.Nullable;
public class CollectionUtil {
public static <T> List<T> makeList(Enumeration<T> e) {
return null;
}
public static <T> List<T> makeList(Iterator<T> it) {
return null;
}
public static <T> List<T> makeList(@Nullable T[] objs) {
return null;
}
public static <T> List<T> makeList(@Nullable Collection<T> list) {
return null;
}
}
results in
at org.walkmod.javalang.compiler.types.TypeVisitorAdapter.visit(TypeVisitorAdapter.java:527)
at org.walkmod.javalang.compiler.types.TypeVisitorAdapter.visit(TypeVisitorAdapter.java:115)
at org.walkmod.javalang.ast.expr.MethodCallExpr.accept(MethodCallExpr.java:138)
at org.walkmod.javalang.compiler.symbols.SymbolVisitorAdapter.visit(SymbolVisitorAdapter.java:723)
at org.walkmod.javalang.compiler.symbols.SymbolVisitorAdapter.visit(SymbolVisitorAdapter.java:92)
at org.walkmod.javalang.ast.stmt.ExpressionStmt.accept(ExpressionStmt.java:79)
at org.walkmod.javalang.visitors.VoidVisitorAdapter.visit(VoidVisitorAdapter.java:203)
at org.walkmod.javalang.compiler.symbols.SymbolVisitorAdapter.visit(SymbolVisitorAdapter.java:522)
at org.walkmod.javalang.compiler.symbols.SymbolVisitorAdapter.visit(SymbolVisitorAdapter.java:92)
at org.walkmod.javalang.ast.stmt.BlockStmt.accept(BlockStmt.java:89)
at org.walkmod.javalang.visitors.VoidVisitorAdapter.visit(VoidVisitorAdapter.java:564)
at org.walkmod.javalang.compiler.symbols.SymbolVisitorAdapter.visit(SymbolVisitorAdapter.java:550)
at org.walkmod.javalang.compiler.symbols.SymbolVisitorAdapter.visit(SymbolVisitorAdapter.java:92)
at org.walkmod.javalang.ast.body.MethodDeclaration.accept(MethodDeclaration.java:207)
at org.walkmod.javalang.compiler.symbols.SymbolVisitorAdapter.visit(SymbolVisitorAdapter.java:445)
at org.walkmod.javalang.compiler.symbols.SymbolVisitorAdapter.visit(SymbolVisitorAdapter.java:92)
at org.walkmod.javalang.ast.body.ClassOrInterfaceDeclaration.accept(ClassOrInterfaceDeclaration.java:136)
at org.walkmod.javalang.compiler.symbols.SymbolVisitorAdapter.visit(SymbolVisitorAdapter.java:174)
at org.walkmod.javalang.walkers.DefaultJavaWalker.visit(DefaultJavaWalker.java:198)
at org.walkmod.javalang.walkers.DefaultJavaWalker.accept(DefaultJavaWalker.java:86)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.walkmod.walkers.AbstractWalker.walk(AbstractWalker.java:261)
at org.walkmod.walkers.AbstractWalker.execute(AbstractWalker.java:276)
at org.walkmod.javalang.walkers.DefaultJavaWalker.execute(DefaultJavaWalker.java:160)
at org.walkmod.impl.DefaultChainWalkerInvocation.invoke(DefaultChainWalkerInvocation.java:41)
at org.walkmod.impl.DefaultChainInvocation.invoke(DefaultChainInvocation.java:38)
at org.walkmod.impl.DefaultChainAdapter.execute(DefaultChainAdapter.java:165)
at org.walkmod.WalkModFacade.executeAllChains(WalkModFacade.java:911)
at org.walkmod.WalkModFacade.apply(WalkModFacade.java:376)
at org.walkmod.commands.ApplyCommand.execute(ApplyCommand.java:40)
at org.walkmod.WalkModDispatcher.execute(WalkModDispatcher.java:171)
at org.walkmod.WalkModDispatcher.main(WalkModDispatcher.java:196)
Caused by: org.walkmod.javalang.exceptions.NoSuchExpressionTypeException: java.lang.Exception: Ops! The method call setList(CollectionUtil.makeList(l)) is not resolved. The scope is [empty] , and the args are : [ java.util.List<java.util.List>]
... 35 more
Caused by: java.lang.Exception: Ops! The method call setList(CollectionUtil.makeList(l)) is not resolved. The scope is [empty] , and the args are : [ java.util.List<java.util.List>]
at org.walkmod.javalang.compiler.reflection.SymbolDataOfMethodReferenceBuilder.build(SymbolDataOfMethodReferenceBuilder.java:75)
at org.walkmod.javalang.compiler.types.TypeVisitorAdapter.visit(TypeVisitorAdapter.java:516)
... 34 more
The text was updated successfully, but these errors were encountered:
results in
The text was updated successfully, but these errors were encountered: