Different behavior between IntelliJ mvn clean install and commandline mvn clean install
I'm using IntelliJ 2018.1.2 Ultimate Edition on Mac OS High Sierra, and I'm running into an issue where when I run 'mvn clean install' in the terminal, my JUnit tests run fine, however when I run the maven configuration in IntelliJ, some JUnit tests fail because of a strange error:
java.lang.ClassCastException: [B cannot be cast to [C
at bloomfilter.CanGenerateHashFrom$CanGenerateHashFromString$.generateHash(CanGenerateHashFrom.scala:27)
at bloomfilter.CanGenerateHashFrom$CanGenerateHashFromString$.generateHash(CanGenerateHashFrom.scala:20)
at bloomfilter.mutable.BloomFilter.mightContain(BloomFilter.scala:41)...
IntelliJ is using the same local Java JDK (jdk1.8.0_162).
I'm tried invalidating the cache, restarting, clearing IntelliJ settings, clearing the .idea directory, .m2 directory, just to see if there would be a change. Others have run the same code, and have had no issue.
Please sign in to leave a comment.
I uninstalled Java completely, then reinstalled the newest update (jdk1.8.0_172), and that seemed to fix the issue.
I still do not understand why a command-line build would be any different than building in IntelliJ if it was a Java JDK issue, but the initial problem is fixed.