Hi all,
I am currently trying to use Refaster 2.3.1 and error-prone 2.3.1 with Java 8, with the ultimate aim of building a Gradle plugin for Refaster that would work across a number of recent error-prone/Refaster versions and all JDKs version 8+. However, I’m having limited success so far getting the combination of Refaster, error-prone and Java above working, and I was hoping that someone could help me understand where my lack of understanding is and how I could potentially move forward.
There are at least two facets to my problem. Firstly, when I look at the current instructions over at
http://errorprone.info/docs/refaster, I notice that they work on my machine up to Refaster version 2.1.1. However, any version equal to or greater than 2.1.2 fails to work, which I understand is due to a change in commit [1] which was introduced to support Java 9.
Secondly, when I look at the alternative instructions for running Refaster over at [2], I see that it suggests downloading and running a custom version of javac as a jar, but I’m confused as to how I’m supposed to run it, because running just `javac` on my machine uses my default installed Java 8 javac.
My Google searches brought me to [3], but it wasn’t clear to me that there was any useful information other than building a patched error-prone compiler from scratch, which I admit I feel rather iffy doing.
Can someone help me understand how to move forward with all this?
Cheers,
Jonathan
P.S. The OS I’m running on is Windows 7, and my installed JDK is Oracle JDK version 1.8.0_161, specifically:
java version "1.8.0_161"
Java(TM) SE Runtime Environment (build 1.8.0_161-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode)