]
Gustavo Fernandes updated ISPN-8843:
------------------------------------
Workaround Description: Re-declare optional dependencies in the server/core
Workaround: Workaround Exists
Running Hot Rod client tests from IDE results in CompletionFailure
------------------------------------------------------------------
Key: ISPN-8843
URL:
https://issues.jboss.org/browse/ISPN-8843
Project: Infinispan
Issue Type: Bug
Components: Build
Affects Versions: 9.1.0.CR1
Environment: * OpenJDK Runtime Environment (build 1.8.0_161-b14)
* Fedora, kernel 4.14.16-200.fc26.x86_64
* Apache Maven 3.5.0
* IntelliJ IDEA 2017.3.4 (Community Edition)
Build #IC-173.4548.28, built on January 30, 2018
JRE: 1.8.0_152-release-1024-b11 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 4.14.16-200.fc26.x86_64
Reporter: Sebastian Łaskawiec
Assignee: Sebastian Łaskawiec
Priority: Minor
After migrating from Netty Uber Jar to small jars approach we were able to fine-tune the
artifacts we depend on. This however caused some very unexpected errors when running
testsuite from IDE (see the steps to reproduce):
{code}
Error:java: com.sun.tools.javac.code.Symbol$CompletionFailure: class file for
org.conscrypt.AllocatedBuffer not found
{code}
Everything works absolutely fine with Maven, so there must be something with the IDE. So
far I noticed that {{server/core}} module seems to be the best suspect in this case. The
class the IDE is complaining about might be found
[
here|https://github.com/netty/netty/blob/5a6ee27cee9df99404016f124d3768f9...].
Note that this is an optional dependency of the handler module ([see the
pom.xml|https://github.com/netty/netty/blob/5a6ee27cee9df99404016f124d376...]).
Why does IntelliJ is trying to compile it?