Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
(Java) V4 4.0.0-beta-02
-
None
Description
Olingo unit tests are failing when compiled using JDK1.8 (see error message below).
Note: likely to an an Antlr bug as reported by the compilation report:
[INFO] --- antlr4-maven-plugin:4.1:antlr4 (default) @ odata-server-core --- [INFO] ANTLR 4: Processing source directory D:\olingo-odata4-master-29e2833\lib\server-core\src\main\antlr4 [INFO] Processing grammar: org\apache\olingo\server\core\uri\antlr\UriLexer.g4 [WARNING] Message{errorType=EPSILON_TOKEN, args=[REST_F], e=null, fileName='org\apache\olingo\server\core\uri\antlr\UriLexer.g4', line=314,charPosition=0} [INFO] Processing grammar: org\apache\olingo\server\core\uri\antlr\UriParser.g4 [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Olingo-OData ....................................... SUCCESS [ 3.260 s] [INFO] odata-lib .......................................... SUCCESS [ 0.343 s] [INFO] odata-commons-api .................................. SUCCESS [ 4.605 s] [INFO] odata-commons-core ................................. SUCCESS [ 5.963 s] [INFO] odata-client-api ................................... SUCCESS [ 1.794 s] [INFO] odata-client-core .................................. SUCCESS [ 6.570 s] [INFO] odata-server-api ................................... SUCCESS [ 2.203 s] [INFO] odata-server-core .................................. FAILURE [ 0.921 s] [INFO] odata-server-tecsvc ................................ SKIPPED [INFO] odata-server-test .................................. SKIPPED [INFO] odata-ext .......................................... SKIPPED [INFO] odata-client-proxy ................................. SKIPPED [INFO] pojogen-maven-plugin ............................... SKIPPED [INFO] odata-client-android ............................... SKIPPED [INFO] odata-fit .......................................... SKIPPED [INFO] odata-dist ......................................... SKIPPED [INFO] Olingo-OData-Client-for-Android .................... SKIPPED [INFO] Olingo-OData-Client-for-Java ....................... SKIPPED [INFO] Olingo-OData-Server-for-Java ....................... SKIPPED [INFO] Olingo-OData-JavaDoc ............................... SKIPPED [INFO] odata-samples ...................................... SKIPPED [INFO] odata-server-sample ................................ SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 26.111 s [INFO] Finished at: 2015-04-17T10:24:39+01:00 [INFO] Final Memory: 84M/564M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.antlr:antlr4-maven-plugin:4.1:antlr4 (default) on project odata-server-core: Execution default of goal org.antlr:antlr4-maven-plugin:4.1:antlr4 failed: Index: 0, Size: 0 -> [Help 1]
Note: Antlr 4.2 reports a different error:
[INFO] Processing grammar: org\apache\olingo\server\core\uri\antlr\UriLexer.g4 [WARNING] warning(146): org\apache\olingo\server\core\uri\antlr\UriLexer.g4:314:0: non-fragment lexer rule 'REST_F' can match the empty string [WARNING] d:\olingo-odata4-master-29e2833\org\apache\olingo\server\core\uri\antlr\UriLexer.g4 [314:0]: non-fragment lexer rule 'REST_F' can match the empty string [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Olingo-OData ....................................... SUCCESS [ 4.043 s] [INFO] odata-lib .......................................... SUCCESS [ 0.374 s] [INFO] odata-commons-api .................................. SUCCESS [ 5.449 s] [INFO] odata-commons-core ................................. SUCCESS [ 7.063 s] [INFO] odata-client-api ................................... SUCCESS [ 1.841 s] [INFO] odata-client-core .................................. SUCCESS [ 6.680 s] [INFO] odata-server-api ................................... SUCCESS [ 2.265 s] [INFO] odata-server-core .................................. FAILURE [ 0.812 s] [INFO] odata-server-tecsvc ................................ SKIPPED [INFO] odata-server-test .................................. SKIPPED [INFO] odata-ext .......................................... SKIPPED [INFO] odata-client-proxy ................................. SKIPPED [INFO] pojogen-maven-plugin ............................... SKIPPED [INFO] odata-client-android ............................... SKIPPED [INFO] odata-fit .......................................... SKIPPED [INFO] odata-dist ......................................... SKIPPED [INFO] Olingo-OData-Client-for-Android .................... SKIPPED [INFO] Olingo-OData-Client-for-Java ....................... SKIPPED [INFO] Olingo-OData-Server-for-Java ....................... SKIPPED [INFO] Olingo-OData-JavaDoc ............................... SKIPPED [INFO] odata-samples ...................................... SKIPPED [INFO] odata-server-sample ................................ SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 29.276 s [INFO] Finished at: 2015-04-17T10:16:38+01:00 [INFO] Final Memory: 84M/620M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.antlr:antlr4-maven-plugin:4.2:antlr4 (default) on project odata-server-core: Execution default of goal org.antlr:antlr4-maven-plugin:4.2:antlr4 failed: Serialized ATN data element out of range. -> [Help 1]