{"action":"created","issue":{"url":"https://api.github.com/repos/Jasig/cas/issues/1332","repository_url":"https://api.github.com/repos/Jasig/cas","labels_url":"https://api.github.com/repos/Jasig/cas/issues/1332/labels{/name}","comments_url":"https://api.github.com/repos/Jasig/cas/issues/1332/comments","events_url":"https://api.github.com/repos/Jasig/cas/issues/1332/events","html_url":"https://github.com/Jasig/cas/pull/1332","id":120515683,"number":1332,"title":"Upgrade to Java 8","user":{"login":"tduehr","id":37545,"avatar_url":"https://avatars.githubusercontent.com/u/37545?v=3","gravatar_id":"","url":"https://api.github.com/users/tduehr","html_url":"https://github.com/tduehr","followers_url":"https://api.github.com/users/tduehr/followers","following_url":"https://api.github.com/users/tduehr/following{/other_user}","gists_url":"https://api.github.com/users/tduehr/gists{/gist_id}","starred_url":"https://api.github.com/users/tduehr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tduehr/subscriptions","organizations_url":"https://api.github.com/users/tduehr/orgs","repos_url":"https://api.github.com/users/tduehr/repos","events_url":"https://api.github.com/users/tduehr/events{/privacy}","received_events_url":"https://api.github.com/users/tduehr/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Jasig/cas/labels/Architecture","name":"Architecture","color":"5319e7"},{"url":"https://api.github.com/repos/Jasig/cas/labels/Build","name":"Build","color":"5319e7"},{"url":"https://api.github.com/repos/Jasig/cas/labels/Infrastructure","name":"Infrastructure","color":"5319e7"},{"url":"https://api.github.com/repos/Jasig/cas/labels/Major","name":"Major","color":"eb6420"},{"url":"https://api.github.com/repos/Jasig/cas/labels/Task","name":"Task","color":"522900"}],"state":"open","locked":false,"assignee":{"login":"dima767","id":12629,"avatar_url":"https://avatars.githubusercontent.com/u/12629?v=3","gravatar_id":"","url":"https://api.github.com/users/dima767","html_url":"https://github.com/dima767","followers_url":"https://api.github.com/users/dima767/followers","following_url":"https://api.github.com/users/dima767/following{/other_user}","gists_url":"https://api.github.com/users/dima767/gists{/gist_id}","starred_url":"https://api.github.com/users/dima767/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dima767/subscriptions","organizations_url":"https://api.github.com/users/dima767/orgs","repos_url":"https://api.github.com/users/dima767/repos","events_url":"https://api.github.com/users/dima767/events{/privacy}","received_events_url":"https://api.github.com/users/dima767/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/Jasig/cas/milestones/15","html_url":"https://github.com/Jasig/cas/milestones/4.3.0","labels_url":"https://api.github.com/repos/Jasig/cas/milestones/15/labels","id":1349862,"number":15,"title":"4.3.0","description":"CAS version 4.3.0 minor release","creator":{"login":"mmoayyed","id":1205228,"avatar_url":"https://avatars.githubusercontent.com/u/1205228?v=3","gravatar_id":"","url":"https://api.github.com/users/mmoayyed","html_url":"https://github.com/mmoayyed","followers_url":"https://api.github.com/users/mmoayyed/followers","following_url":"https://api.github.com/users/mmoayyed/following{/other_user}","gists_url":"https://api.github.com/users/mmoayyed/gists{/gist_id}","starred_url":"https://api.github.com/users/mmoayyed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmoayyed/subscriptions","organizations_url":"https://api.github.com/users/mmoayyed/orgs","repos_url":"https://api.github.com/users/mmoayyed/repos","events_url":"https://api.github.com/users/mmoayyed/events{/privacy}","received_events_url":"https://api.github.com/users/mmoayyed/received_events","type":"User","site_admin":false},"open_issues":20,"closed_issues":51,"state":"open","created_at":"2015-10-12T01:28:38Z","updated_at":"2016-02-02T13:18:19Z","due_on":"2016-04-19T07:00:00Z","closed_at":null},"comments":64,"created_at":"2015-12-05T00:48:50Z","updated_at":"2016-02-02T20:20:58Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Jasig/cas/pulls/1332","html_url":"https://github.com/Jasig/cas/pull/1332","diff_url":"https://github.com/Jasig/cas/pull/1332.diff","patch_url":"https://github.com/Jasig/cas/pull/1332.patch"},"body":"Closes #957"},"comment":{"url":"https://api.github.com/repos/Jasig/cas/issues/comments/178801470","html_url":"https://github.com/Jasig/cas/pull/1332#issuecomment-178801470","issue_url":"https://api.github.com/repos/Jasig/cas/issues/1332","id":178801470,"user":{"login":"dima767","id":12629,"avatar_url":"https://avatars.githubusercontent.com/u/12629?v=3","gravatar_id":"","url":"https://api.github.com/users/dima767","html_url":"https://github.com/dima767","followers_url":"https://api.github.com/users/dima767/followers","following_url":"https://api.github.com/users/dima767/following{/other_user}","gists_url":"https://api.github.com/users/dima767/gists{/gist_id}","starred_url":"https://api.github.com/users/dima767/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dima767/subscriptions","organizations_url":"https://api.github.com/users/dima767/orgs","repos_url":"https://api.github.com/users/dima767/repos","events_url":"https://api.github.com/users/dima767/events{/privacy}","received_events_url":"https://api.github.com/users/dima767/received_events","type":"User","site_admin":false},"created_at":"2016-02-02T20:20:58Z","updated_at":"2016-02-02T20:20:58Z","body":"So, deep down in the `JWTClaimsSet::toJSONObject` of the Nimbus dependency library that Oauth code uses underneath:\r\n\r\n```java\r\npublic JSONObject toJSONObject() {\r\n\r\n\t\tJSONObject o = new JSONObject();\r\n\r\n\t\tfor (Map.Entry<String,Object> claim: claims.entrySet()) {\r\n\r\n\t\t\tif (claim.getValue() instanceof Date) {\r\n\r\n\t\t\t\t// Transform dates to Unix timestamps\r\n\t\t\t\tDate dateValue = (Date) claim.getValue();\r\n\t\t\t\to.put(claim.getKey(), DateUtils.toSecondsSinceEpoch(dateValue));\r\n...\r\n```\r\n\r\nSo the values must be of type `java.util.Date` and the `ZonedDateTime` used in the test won't fly... "}}