{"action":"closed","issue":{"url":"https://api.github.com/repos/h2database/h2database/issues/1214","repository_url":"https://api.github.com/repos/h2database/h2database","labels_url":"https://api.github.com/repos/h2database/h2database/issues/1214/labels{/name}","comments_url":"https://api.github.com/repos/h2database/h2database/issues/1214/comments","events_url":"https://api.github.com/repos/h2database/h2database/issues/1214/events","html_url":"https://github.com/h2database/h2database/issues/1214","id":333388890,"node_id":"MDU6SXNzdWUzMzMzODg4OTA=","number":1214,"title":"Internal compiler believes that \"3 warnings\" is an error","user":{"login":"SirIntellegence","id":3401182,"node_id":"MDQ6VXNlcjM0MDExODI=","avatar_url":"https://avatars3.githubusercontent.com/u/3401182?v=4","gravatar_id":"","url":"https://api.github.com/users/SirIntellegence","html_url":"https://github.com/SirIntellegence","followers_url":"https://api.github.com/users/SirIntellegence/followers","following_url":"https://api.github.com/users/SirIntellegence/following{/other_user}","gists_url":"https://api.github.com/users/SirIntellegence/gists{/gist_id}","starred_url":"https://api.github.com/users/SirIntellegence/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SirIntellegence/subscriptions","organizations_url":"https://api.github.com/users/SirIntellegence/orgs","repos_url":"https://api.github.com/users/SirIntellegence/repos","events_url":"https://api.github.com/users/SirIntellegence/events{/privacy}","received_events_url":"https://api.github.com/users/SirIntellegence/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-18T18:42:17Z","updated_at":"2018-07-18T04:32:44Z","closed_at":"2018-07-18T04:32:44Z","author_association":"NONE","body":"The text the compiler outputs is\r\n\r\n> warning: Supported source version 'RELEASE_7' from annotation processor 'org.netbeans.modules.openide.util.ServiceProviderProcessor' less than -source '10'\r\nwarning: Supported source version 'RELEASE_7' from annotation processor 'org.netbeans.modules.openide.util.NamedServiceProcessor' less than -source '10'\r\nwarning: Supported source version 'RELEASE_7' from annotation processor 'org.netbeans.modules.openide.util.NbBundleProcessor' less than -source '10'\r\n3 warnings\r\n\r\nThe code in question is\r\n\r\n>    private static void handleSyntaxError(String output) {\r\n        boolean syntaxError = false;\r\n        final BufferedReader reader = new BufferedReader(new StringReader(output));\r\n        try {\r\n            for (String line; (line = reader.readLine()) != null;) {\r\n                if (line.endsWith(\"warning\")) {\r\n                    // ignore summary line\r\n                } else if (line.startsWith(\"Note:\")\r\n                        || line.startsWith(\"warning:\")) {\r\n                    // just a warning (e.g. unchecked or unsafe operations)\r\n                } else {\r\n                    syntaxError = true;\r\n                    break;\r\n                }\r\n            }\r\n        } catch (IOException ignored) {\r\n            // exception ignored\r\n        }\r\n        if (syntaxError) {\r\n            output = StringUtils.replaceAll(output, COMPILE_DIR, \"\");\r\n            throw DbException.get(ErrorCode.SYNTAX_ERROR_1, output);\r\n        }\r\n    }\r\n\r\nIt thinks that a line ending with \"warnings\" is an error.\r\n"}}
{"actor":{"display_login":"katzyn"}}