{"action":"created","issue":{"url":"https://api.github.com/repos/jdereg/json-io/issues/38","labels_url":"https://api.github.com/repos/jdereg/json-io/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/jdereg/json-io/issues/38/comments","events_url":"https://api.github.com/repos/jdereg/json-io/issues/38/events","html_url":"https://github.com/jdereg/json-io/issues/38","id":70472036,"number":38,"title":"Class file not compatible with older versions of Java","user":{"login":"SlimerDude","id":3326741,"avatar_url":"https://avatars.githubusercontent.com/u/3326741?v=3","gravatar_id":"","url":"https://api.github.com/users/SlimerDude","html_url":"https://github.com/SlimerDude","followers_url":"https://api.github.com/users/SlimerDude/followers","following_url":"https://api.github.com/users/SlimerDude/following{/other_user}","gists_url":"https://api.github.com/users/SlimerDude/gists{/gist_id}","starred_url":"https://api.github.com/users/SlimerDude/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SlimerDude/subscriptions","organizations_url":"https://api.github.com/users/SlimerDude/orgs","repos_url":"https://api.github.com/users/SlimerDude/repos","events_url":"https://api.github.com/users/SlimerDude/events{/privacy}","received_events_url":"https://api.github.com/users/SlimerDude/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-04-23T17:53:55Z","updated_at":"2015-04-25T17:59:52Z","closed_at":"2015-04-25T17:59:52Z","body":"Assuming the lib doesn't use any newer Java features, could the source be recompiled so it's compatible with older versions of Java?\r\n\r\nBeing a JDK 1.6 user I currently get:\r\n\r\n    Unsupported major.minor version 51.0\r\n\r\nThis [SO question](http://stackoverflow.com/questions/10382929/how-to-fix-unsupported-major-minor-version-51-0-error) explains a bit more if you're unsure.\r\n\r\nI know I can do it myself, but it's always nice not having to build from source."},"comment":{"url":"https://api.github.com/repos/jdereg/json-io/issues/comments/96246491","html_url":"https://github.com/jdereg/json-io/issues/38#issuecomment-96246491","issue_url":"https://api.github.com/repos/jdereg/json-io/issues/38","id":96246491,"user":{"login":"SlimerDude","id":3326741,"avatar_url":"https://avatars.githubusercontent.com/u/3326741?v=3","gravatar_id":"","url":"https://api.github.com/users/SlimerDude","html_url":"https://github.com/SlimerDude","followers_url":"https://api.github.com/users/SlimerDude/followers","following_url":"https://api.github.com/users/SlimerDude/following{/other_user}","gists_url":"https://api.github.com/users/SlimerDude/gists{/gist_id}","starred_url":"https://api.github.com/users/SlimerDude/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SlimerDude/subscriptions","organizations_url":"https://api.github.com/users/SlimerDude/orgs","repos_url":"https://api.github.com/users/SlimerDude/repos","events_url":"https://api.github.com/users/SlimerDude/events{/privacy}","received_events_url":"https://api.github.com/users/SlimerDude/received_events","type":"User","site_admin":false},"created_at":"2015-04-25T17:59:52Z","updated_at":"2015-04-25T17:59:52Z","body":"With regards to the line:\r\n\r\n    List<String> names = new ArrayList<>()\r\n\r\nwhile the syntax is Java 1.7, the JDK can still compile it to Java 1.5 / 1.6 compatible byte code resulting in a class file usable by all (the purpose of the said `target` compiler option).\r\n\r\nBut on further inspection of the source code, I see you're using `java.lang.ReflectiveOperationException` in `MetaUtils` which was only introduced in Java 1.7 - so obviously those references won't resolve in earlier JDKs.\r\n\r\nOh well - I was only after a quick one-liner for pretty printing JSON. Hope you don't mind but I've gone with the usual GSON..."}}