dropwizard-logstash-encoder icon indicating copy to clipboard operation
dropwizard-logstash-encoder copied to clipboard

Unsupported major.minor version 52.0

Open osigida opened this issue 10 years ago • 3 comments

the library is compiled with java 8 which makes it not really usable so far. better to maintain some backward compatibility, and use at least java 7

exception looks like: java.lang.UnsupportedClassVersionError: com/wikia/dropwizard/logstash/appender/LogstashSocketAppenderFactory : Unsupported major.minor version 52.0

osigida avatar Feb 19 '15 12:02 osigida

Any interest in compiling with java 7?

masonbryant avatar May 21 '15 21:05 masonbryant

Yes, please compile with at most java 7 =)

esiqveland avatar Jun 01 '15 11:06 esiqveland

Unless your code or dependencies absolutely require Java 1.8 you should always set lower version as target. Think about your users. Not all projects are using 1.8 today. You simply make your library unusable for many projects out there.

I checked briefly - looks like the only 1.8 thing in this code is using of Map.getOrDefault() method, which is, obviously, easy to work around.

ngrigoriev avatar Jun 01 '15 23:06 ngrigoriev