Error message

100 views
Skip to first unread message

Tracy Hiltbrand

unread,
Dec 12, 2021, 12:25:50 AM12/12/21
to equalsverifier
Hi there!
I've come across an error message that confuses me - I looked in the online list, did a google search - nothing came up!
Here's part of the error output:

 [ERROR]   XYTaskDatasetTest.testEqualsHashCode:65 EqualsVerifier found a problem in class org.jfree.data.gantt.XYTaskDataset.

-> Unable to make field protected transient volatile java.lang.Object[] javax.swing.event.EventListenerList.listenerList accessible: module java.desktop does not "opens javax.swing.event" to unnamed module @32816a91

I captured the entire output in the attached mvn-validate-output.txt

Using java version 1.8:

tracylynne...jfreechart % java -version

java version "1.8.0_311"

Java(TM) SE Runtime Environment (build 1.8.0_311-b11)

Java HotSpot(TM) 64-Bit Server VM (build 25.311-b11, mixed mode)

Any help is much appreciated - thanks!

mvn-validate-output.txt

Jan Ouwens

unread,
Dec 13, 2021, 2:31:39 AM12/13/21
to equalsv...@googlegroups.com, equalsverifier
Hi,

I'm sorry, I can't really figure out what's going wrong, based on the information you give.

The error that you mention is related to modules, and therefore can only occur in Java 9 and higher, and not in Java 8 (or 1.8).

Also, your attachment is almost empty. mvn validate will do a syntax check on your pom file and download dependencies, but nothing more. You probably meant to do mvn verify?

Regards,
Jan
--
You received this message because you are subscribed to the Google Groups "equalsverifier" group.
To unsubscribe from this group and stop receiving emails from it, send an email to equalsverifie...@googlegroups.com.

Tracy Hiltbrand

unread,
Dec 13, 2021, 1:01:48 PM12/13/21
to equalsverifier
Ah - yes, right, I did mean to run verify! 
mvn-verify-output.txt

Tracy Hiltbrand

unread,
Dec 13, 2021, 6:24:38 PM12/13/21
to equalsverifier
Update: I saw in the verify output that somehow, even though running 'java -version' at the command line indicated that jdk 8 was being used, it was using java 10 or 11. I ended up just deleting homebrew and all its associated downloads and that did the trick.

Jan Ouwens

unread,
Dec 14, 2021, 2:20:20 AM12/14/21
to equalsv...@googlegroups.com, equalsverifier
OK, I was indeed confused how module errors could come up on Java 8. Glad you figured it out.
If the problem comes back, it might help to use .withPrefabValues(javax.swing.event.EventListenerList.class, ...) 
You'll need to give it 2 separate instances of EventListenerList as well. You can do the same for all the other classes that come up.


Regards,
Jan
Reply all
Reply to author
Forward
0 new messages