Hi all...
Having a bit of trouble upgrading from java 8 to 11. With version 2.8.2, boot gets pretty angry on startup with the error
java.lang.IllegalArgumentException: Must hint overloaded method: toArray
.
I also tried compiling from master from to include this fix: <https://github.com/boot-clj/boot/pull/738>
. But, boot still spits out the same error.
Can’t seem to find any info on this on google. Maybe I’m missing something really obvious? Any help would be greatly appreciated.
@odie you won’t be able to compile past Java 9 right now
@odie https://www.deps.co/blog/how-to-upgrade-clojure-projects-to-use-java-11/#java-util-collection-toarray
that might help with some context on what is going wrong
Correction, it looks like we are compiling on all versions now.
@danielcompton Thanks! That was the first search result on google when I tried looking for a solution. I don’t think it actually addresses the issue I’m encountering though. I can’t even run “boot -h” or “boot repl” in an empty directory without encountering said exception. =(
@flyboarder https://travis-ci.org/boot-clj/boot/jobs/509079873 shows that tests are passing when running again openjdk 11.0.2. If I try to run the same commands on locally, this comes up: https://pastebin.com/2eVB9uwb
I guess I ought to try it on a fresh vm?
Do you have anything in your profile.boot?
what’s the boot equivalent of clj -Spath
again?
Got it: boot with-cp -w -f -
@odie why not just download 2.8.2?
I’m currently running on java 11, other than reflection warnings no issues