Uh oh!
There was an error while loading. Please reload this page.
introduce ADT methods - #39
Conversation
hello @pettermahlen I think the example demonstrates what I am trying to achieve |
pettermahlen
commented
Sep 13, 2023
This also looks useful, could you update it so it works with #38, then I will merge it as well. |
andyglow
commented
Sep 14, 2023
@pettermahlen done. please at your convenience take another look |
pettermahlen
commented
Sep 14, 2023
@andyglow it turns out that merging this has led to maven compilation failing. It's because the |
andyglow
commented
Sep 14, 2023
Well. I'm not a maven guy as well. But my research revealed that it gets compiled fine if you use Java up to 11. For Java 17 we need to specify a bunch of compiler options to allow unnamed modules access jdk.compile module. I couldn't find a way to make maven conditionally (if Java version is greater then X) apply compiler options. If applied non conditionally then compilation failed for java versions less then or equal to 11. |
andyglow
commented
Sep 14, 2023
Can you build it with Java 11? |
pettermahlen
commented
Sep 14, 2023
I am using Java 11: |
andyglow
commented
Sep 14, 2023
can you share logs please? this is the version of java that I used to compile it |
pettermahlen
commented
Sep 15, 2023
The relevant bits are |
pettermahlen
commented
Sep 15, 2023
That was from Also, full version output from |
andyglow
commented
Sep 15, 2023
@pettermahlen i see that you merged it, so you sorted the build issues out? |
pettermahlen
commented
Sep 18, 2023
No, unfortunately I merged before I noticed that there was an issue. We don't seem to have CI for this project.. |
andyglow
commented
Sep 19, 2023
I see. Let me try to build with |
andyglow
commented
Oct 11, 2023
@pettermahlen did you try to build it with |
pettermahlen
commented
Oct 13, 2023
After a long fight with rotten bits, I managed to create and deploy a release. 1.5.0 is now out, thanks for your contributions! |
adt methods are the
defaultmethods defined at Spec (interface) that's being copied over to the base adt class.