{"action":"opened","issue":{"url":"https://api.github.com/repos/h2database/h2database/issues/207","labels_url":"https://api.github.com/repos/h2database/h2database/issues/207/labels{/name}","comments_url":"https://api.github.com/repos/h2database/h2database/issues/207/comments","events_url":"https://api.github.com/repos/h2database/h2database/issues/207/events","html_url":"https://github.com/h2database/h2database/issues/207","id":117309767,"number":207,"title":"CREATE ALIAS tests fail on Java 7 because of TestAnnotationProcessor","user":{"login":"svladykin","id":1635896,"avatar_url":"https://avatars.githubusercontent.com/u/1635896?v=3","gravatar_id":"","url":"https://api.github.com/users/svladykin","html_url":"https://github.com/svladykin","followers_url":"https://api.github.com/users/svladykin/followers","following_url":"https://api.github.com/users/svladykin/following{/other_user}","gists_url":"https://api.github.com/users/svladykin/gists{/gist_id}","starred_url":"https://api.github.com/users/svladykin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svladykin/subscriptions","organizations_url":"https://api.github.com/users/svladykin/orgs","repos_url":"https://api.github.com/users/svladykin/repos","events_url":"https://api.github.com/users/svladykin/events{/privacy}","received_events_url":"https://api.github.com/users/svladykin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-17T08:50:51Z","updated_at":"2015-11-17T08:50:51Z","closed_at":null,"body":"When I do `./build.sh compile test` on Java 7 all the UDF tests which compile functions from java source code fail with error like the following:\r\n```\r\norg.h2.jdbc.JdbcSQLException: Syntax error in SQL statement \"warning: Supported source version 'RELEASE_6' from annotation processor 'org.h2.test.ap.TestAnnotationProcessor' less than -source '1.7'\r\n1 warning\r\n\";\r\n```\r\nIf I change `TestAnnotationProcessor` like:\r\n```java\r\n    public SourceVersion getSupportedSourceVersion() {\r\n        return SourceVersion.latest();\r\n    }\r\n```\r\nI see failure in `TestFunctions.testAnnotationProcessorsOutput`:\r\n```\r\n12:32:50 00:00.425 org.h2.test.db.TestFunctions Syntax error in SQL statement \" boolean test_atp_invalid_key() { return true; } \"; SQL statement:kcreate alias test_atp_invalid_key AS $$ boolean test_atp_invalid_key() { return true; } $$; [42000-190] does not contain: 'invalid'\r\nERROR: FAIL java.lang.AssertionError: Syntax error in SQL statement \" boolean test_atp_invalid_key() { return true; } \"; SQL statement:kcreate alias test_atp_invalid_key AS $$ boolean test_atp_invalid_key() { return true; } $$; [42000-190] does not contain: 'invalid' java.lang.AssertionError: Syntax error in SQL statement \" boolean test_atp_invalid_key() { return true; } \"; SQL statement:kcreate alias test_atp_invalid_key AS $$ boolean test_atp_invalid_key() { return true; } $$; [42000-190] does not contain: 'invalid' ------------------------------\r\njava.lang.AssertionError: Syntax error in SQL statement \" boolean test_atp_invalid_key() { return true; } \"; SQL statement:kcreate alias test_atp_invalid_key AS $$ boolean test_atp_invalid_key() { return true; } $$; [42000-190] does not contain: 'invalid'\r\n```\r\nWe need to make sure that tests can work not only on Java 6.\r\n@bedla Ivo, can you please take a look at this issue? `TestAnnotationProcessor` gives us lots of problems lately.\r\n\r\n "}}