-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Analyzing the redis lettuce project at analysis level 1 results in this runtime error:
java.lang.RuntimeException: java.lang.IllegalStateException: Duplicate key connectStatefulAsync(T, DefaultEndpoint, RedisURI, Mono, Supplier) (attempted merging values Callable(filePath=./redis_lettuce/src/main/java/io/lettuce/core/cluster/RedisClusterClient.java, signature=connectStatefulAsync(T, DefaultEndpoint, RedisURI, Mono, Supplier), comments=[Comment(content=
* Initiates a channel connection considering {@link ClientOptions} initialization options, authentication and client name
* options.
, startLine=844, endLine=847, startColumn=5, endColumn=7, isJavadoc=true)], annotations=[@SuppressWarnings("unchecked")], modifiers=[private], thrownExceptions=[], declaration=private ConnectionFuture<S> connectStatefulAsync(T connection, DefaultEndpoint endpoint, RedisURI connectionSettings, Mono<SocketAddress> socketAddressSupplier, Supplier<CommandHandler> commandHandlerSupplier), parameters=[ParameterInCallable(type=T, name=connection, annotations=[], modifiers=[], startLine=849, endLine=849, startColumn=116, endColumn=127), ParameterInCallable(type=io.lettuce.core.protocol.DefaultEndpoint, name=endpoint, annotations=[], modifiers=[], startLine=850, endLine=850, startColumn=13, endColumn=36), ParameterInCallable(type=io.lettuce.core.RedisURI, name=connectionSettings, annotations=[], modifiers=[], startLine=850, endLine=850, startColumn=39, endColumn=65), ParameterInCallable(type=reactor.core.publisher.Mono<java.net.SocketAddress>, name=socketAddressSupplier, annotations=[], modifiers=[], startLine=850, endLine=850, startColumn=68, endColumn=108), ParameterInCallable(type=java.util.function.Supplier<io.lettuce.core.protocol.CommandHandler>, name=commandHandlerSupplier, annotations=[], modifiers=[], startLine=851, endLine=851, startColumn=13, endColumn=59)], code={
ConnectionBuilder connectionBuilder = createConnectionBuilder(connection, connection.getConnectionState(), endpoint,
connectionSettings, socketAddressSupplier, commandHandlerSupplier);
ConnectionFuture<RedisChannelHandler<K, V>> future = initializeChannelAsync(connectionBuilder);
return future.thenApply(channelHandler -> (S) connection);
}
...
To Reproduce
Steps to reproduce the behavior:
- Run code analyzer on the attached
redis/lettuce
project
java -jar ./build/libs/codeanalyzer-2.3.4.jar --input ./redis_lettuce --output ./output --analysis-level 1
Expected behavior
A clear and concise description of what you expected to happen.
Logs
If applicable, add logs to help explain your problem.
Additional context
Add any other context about the problem here.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working