{"action":"created","issue":{"url":"https://api.github.com/repos/checkstyle/checkstyle/issues/432","labels_url":"https://api.github.com/repos/checkstyle/checkstyle/issues/432/labels{/name}","comments_url":"https://api.github.com/repos/checkstyle/checkstyle/issues/432/comments","events_url":"https://api.github.com/repos/checkstyle/checkstyle/issues/432/events","html_url":"https://github.com/checkstyle/checkstyle/issues/432","id":50829315,"number":432,"title":"Change in behaviour between 5.9 and 6.0 for Javadoc referencing checked exception that is not thrown","user":{"login":"stubillwhite","id":1859323,"avatar_url":"https://avatars.githubusercontent.com/u/1859323?v=3","gravatar_id":"","url":"https://api.github.com/users/stubillwhite","html_url":"https://github.com/stubillwhite","followers_url":"https://api.github.com/users/stubillwhite/followers","following_url":"https://api.github.com/users/stubillwhite/following{/other_user}","gists_url":"https://api.github.com/users/stubillwhite/gists{/gist_id}","starred_url":"https://api.github.com/users/stubillwhite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stubillwhite/subscriptions","organizations_url":"https://api.github.com/users/stubillwhite/orgs","repos_url":"https://api.github.com/users/stubillwhite/repos","events_url":"https://api.github.com/users/stubillwhite/events{/privacy}","received_events_url":"https://api.github.com/users/stubillwhite/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/checkstyle/checkstyle/labels/approved","name":"approved","color":"009800"},{"url":"https://api.github.com/repos/checkstyle/checkstyle/labels/javadoc","name":"javadoc","color":"f7c6c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-12-03T12:06:57Z","updated_at":"2015-10-31T20:38:20Z","closed_at":null,"body":"\r\nWe recently upgraded from a very old version of Checkstyle to the most recent version, and noticed a change in behaviour for the situation where Javadoc indicates that a checked exception may be thrown but there is no corresponding throws clause on the method.\r\n\r\nThe behaviour seems to have changed between versions 5.9 and 6.0 of Checkstyle. I've created a test case here: https://gist.github.com/stubillwhite/a96545347e471e2284e7\r\n\r\nFor completeness, we're using IBM Java 7 but I don't believe that's relevant.\r\n\r\nOutput for run-checkstyle-5.9.bat:\r\nStarting audit...\r\nC:\\TRASH\\checkstyle-behaviour-change\\ExceptionJavadoc.java:8:8: warning: Unused @throws tag for 'java.io.IOException'.\r\nAudit done.\r\n\r\nOutput for run-checkstyle-6.0.bat:\r\nStarting audit...\r\nAudit done.\r\n\r\n(On a side note, thank you for all your hard work on Checkstyle -- we find it invaluable.)"},"comment":{"url":"https://api.github.com/repos/checkstyle/checkstyle/issues/comments/152770528","html_url":"https://github.com/checkstyle/checkstyle/issues/432#issuecomment-152770528","issue_url":"https://api.github.com/repos/checkstyle/checkstyle/issues/432","id":152770528,"user":{"login":"mkordas","id":5467276,"avatar_url":"https://avatars.githubusercontent.com/u/5467276?v=3","gravatar_id":"","url":"https://api.github.com/users/mkordas","html_url":"https://github.com/mkordas","followers_url":"https://api.github.com/users/mkordas/followers","following_url":"https://api.github.com/users/mkordas/following{/other_user}","gists_url":"https://api.github.com/users/mkordas/gists{/gist_id}","starred_url":"https://api.github.com/users/mkordas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkordas/subscriptions","organizations_url":"https://api.github.com/users/mkordas/orgs","repos_url":"https://api.github.com/users/mkordas/repos","events_url":"https://api.github.com/users/mkordas/events{/privacy}","received_events_url":"https://api.github.com/users/mkordas/received_events","type":"User","site_admin":false},"created_at":"2015-10-31T20:38:20Z","updated_at":"2015-10-31T20:38:20Z","body":"The thing here is simple. In Checkstyle 6.0 `validateThrows` option was added to JavadocMethod and it's default value is `false`. This means that by default `@throws` is not validated at all. @romani, any idea why it is so? You were merging #329."}}