Closed kedar-joshi closed 6 years ago
Please let me know if you need any additional information.
I am also facing this issue on Mac using cmd+s and IntelliJ:
IntelliJ IDEA 2018.3 EAP (Ultimate Edition) Build #IU-183.2153.8, built on September 4, 2018 IntelliJ IDEA EAP User Expiration date: October 4, 2018 JRE: 1.8.0_152-release-1293-b10 x86_64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o macOS 10.13.6
I'm getting a slightly different stack trace:
java.lang.BootstrapMethodError: java.lang.NoClassDefFoundError: com/siyeh/ig/serialization/SerializableHasSerialVersionUIDFieldInspectionBase
at com.dubreuia.processors.java.JavaProcessor.
Hey guys, thanks a lot for reporting.
It seems like they removed an inspection that I was using. I'm fixing this ASAP.
tl;dr; The problem is that the class was named com.siyeh.ig.serialization.SerializableHasSerialVersionUIDFieldInspectionBase
(SDK 2016.1), it is now named com.siyeh.ig.serialization.SerializableHasSerialVersionUIDFieldInspection
(SDK 2018.3).
Long version: I've fixed it in the "fix" branch. It was harder to fix then I thought, because I wanted to copy / paste the inspection in our code (like we do with other inspections because we cannot extend them), but it turns out the inspection would be calling protected method in parent class, which is authorized only if the parent class is in the same classloader (which is not the case because plugins are in a separate classloader). See https://stackoverflow.com/a/10538366
So I'm loading the inspection by reflection. It is executed only once (the inspection is then stored in a singleton) so performance is not a problem.
The best way to fix this would be to build multiple versions for multiple targets (see #145, basically one target before 2018.3 and one target for 2018.3 and onward), but it takes a lot more work and it feels overkill for now.
@dubreuia Could you please release this as a patch if you intend to delay the milestone release? Thanks,
I'm going to release it tomorrow, I need to test it a bit before release.
You can use this package: Save Actions-1.2.0.zip
Attached plugin works as expected. No more exceptions.
Released in 1.2.0
Thanks a lot guy for reporting and commenting and testing. I really appreciate it!
Thx for the patch, works like a charm!
Save actions plugin throws following exception when used with IDEA v2018.3 EAP
I use
ctrl
+shift
+s
combination for triggering save actions but it fails with above exception every time.