Original report from manish-in-java to GitHub issue #3:
Java: Oracle JDK 1.8.0.0, Oracle JDK 1.8.0.05, OpenJDK 1.8.0 OS: 64-bit CentOS, 64-bit RedHat, 64-bit Amazon Linux, 64-bit Fedora, 64-bit Windows 7 Professional, 64-bit Windows 8 Pro JiBX: 1.2.5
We are trying to upgrade our applications (around 60 in number) to Java 8. All of them use JiBX and JiBX Maven plugin version 1.2.5. The following error is received during the Maven builds and the builds fail:
Failed to execute goal org.jibx:jibx-maven-plugin:1.2.5:bind (bind-compile) on project common: Error loading class java.lang.CharSequence: Error reading path java/lang/CharSequence.class for class java.lang.CharSequence
This problem has existed since the first OpenJDK developer preview came out and has been reported in several forums. What are the plans to fix this?
Workaround posted by Vad1mo:
<plugin>
<groupId>org.jibx</groupId>
<artifactId>jibx-maven-plugin</artifactId>
<version>1.2.5</version>
<configuration>
[...]
</configuration>
<executions>
[...]
</executions>
<dependencies>
<dependency>
<groupId>org.jibx</groupId>
<artifactId>jibx-bind</artifactId>
<version>1.2.5</version>
<exclusions>
<exclusion>
<artifactId>bcel</artifactId>
<groupId>bcel</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.bcel</groupId>
<artifactId>bcel</artifactId>
<version>6.0-SNAPSHOT</version>
</dependency>
</dependencies>
</plugin>
<repositories>
<repository>
<id>apache.snapshots</id>
<url>https://repository.apache.org/content/repositories/snapshots</url>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
<releases>
<enabled>false</enabled>
</releases>
</repository>
</repositories>
|