Java error compiling NormalizedZipInputStream in updater/src/com/intellij/updater/Utils.java
Hello
I want to build my first plugin for IntelliJ, and following the instruction here http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/setting_up_environment.html it seems that I should have community edition source code built. I'm trying to, with this guide http://www.jetbrains.org/intellij/sdk/docs/basics/checkout_and_build_community.html .
I have not added /lib/tools since I'm on mac.
At the point : "Use Build | Make Project to build the code", I have a compilation error :
Error:(278, 18) java: no suitable method found for sort(java.util.List<capture#1 of ? extends java.util.zip.ZipEntry>,java.util.Comparator<java.util.zip.ZipEntry>)
method java.util.Collections.<T>sort(java.util.List<T>) is not applicable
(cannot infer type-variable(s) T
(actual and formal argument lists differ in length))
method java.util.Collections.<T>sort(java.util.List<T>,java.util.Comparator<? super T>) is not applicable
(cannot infer type-variable(s) T,T,U
(argument mismatch; java.util.Comparator<capture#1 of ? extends java.util.zip.ZipEntry> cannot be converted to java.util.Comparator<? super capture#1 of ? extends java.util.zip.ZipEntry>))
I'm using javac 1.8.0_25 on MacOsX 10.12
It seems that the type of myEntries is not confirm to the sort function... I tryed some modification, but I know too little about the project.
Can someone help me please.
Thanks
请先登录再写评论。
Hello, Riccardo,
I'm sorry for the late reply. Javac 1.8.0_25 is quite old, it has bugs which don't allow it to compile IntelliJ IDEA sources. Installing a newer JDK (e.g. 1.8.0_121) should fix the problem.