https://bugs.openjdk.java.net/browse/JDK-8062800

Trask Stalnaker trask.stalnaker at gmail.com
Thu Aug 27 02:28:02 UTC 2015


Another (related) workaround:

<plugin>
  <artifactId>maven-compiler-plugin</artifactId>
  <configuration>
    <useIncrementalCompilation>false</useIncrementalCompilation>
  </configuration>
</plugin>


On Wed, Aug 26, 2015 at 6:46 PM Henri Tremblay <henri at tremblay.pro> wrote:

> Yes. It is a compiler bug that occurs during annotation processing.
>
> And indeed `mvn clean install` works as a workaround.
>
> I was wondering if someone had a tweak for the javac parameters or
> something like that. I would be a bit surprised to be the first one using
> JMH to encounter the issue.
>
> On 26 August 2015 at 05:47, Aleksey Shipilev <aleksey.shipilev at oracle.com>
> wrote:
>
> > Hi Henri,
> >
> > On 08/26/2015 04:57 AM, Henri Tremblay wrote:
> > > I keep hitting what seems to be this bug when compiling JMH:
> > > https://bugs.openjdk.java.net/browse/JDK-8067747
> > >
> > > It occurs during the Maven compilation and shows this exception:
> > > Occasional java.lang.IllegalStateException: endPosTable already set
> > >
> > > It seems to be systematic when I do a `mvn clean install` and then `mvn
> > > install`. All the later will fail.
> > >
> > > Has anyone encountered this issue and found a workaround?
> >
> > So it looks like a failure with javac's incremental compilation.
> > Do "mvn clean install" always -- is that a workaround?
> >
> > Thanks,
> > -Aleksey
> >
> >
>


More information about the jmh-dev mailing list