Fork me on GitHub
#specter
<
2017-09-23
>
sophiago01:09:28

Does Specter have known issues with OpenJDK7? I've never used it myself, but just noticed an error on a Travis build.

nathanmarz02:09:31

@sophiago I haven't tested it on that, I'd have to see the error to have an idea of whether that's related to Specter or not

sophiago02:09:23

The error was Exception in thread "main" java.lang.UnsupportedClassVersionError: com/rpl/specter/Util : Unsupported major.minor version 52.0, compiling:(com/rpl/specter/impl.cljc:1:1). Let me know if you want me to file an issue.

sophiago02:09:08

(I understand that's not particularly informative)

sophiago02:09:04

Oh, that was a fast Googling. I guess it just means the jar was built in 8 and I'm trying to run it in 7.

sophiago02:09:31

I'm also on the 1.9 alpha, although I don't think that should factor in. I'm getting the jar straight from Maven.

nathanmarz03:09:40

yea that's cause the java code was compiled to a different version

nathanmarz03:09:43

not a specter issue

sophiago03:09:26

Sorry, could you please clarify? If I'm just having Lein pull it from Maven then how would I control how it's built?

nathanmarz09:09:17

@sophiago specter has a little bit of java code so the jar contains a couple classfiles

nathanmarz09:09:56

you can try building specter yourself by checking out the project and running lein jar or lein install

sophiago09:09:10

In that case, I think I'll just drop support for OpenJDK7. I think for libraries that's an appropriate expectation now that JDK9 is out. I'm not sure if this is something you'd want to mention in your documentation, though (I will in mine). All other Clojure libraries I use support it.

Nick Drew04:09:59

Java 9 has support for jars with multiple versions of class files. might be a handy way to preserve backward compatibility @U173SEFUN