Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

query-bean-generator-issue

This project illustrates an issue with the ebean query bean generator. Issue as of ebean version 19.3.0 can be reproduced by running mvn compile on this example project. Issue has been raised at ebean-orm/ebean#????.

When generating querybeans, the querybean-generator logs an warning while trying to write embedded.example.EbeanEntityRegister and fails the build (issue details below).

When compiling with -Werror, this warning triggers -Werror error.

When used alongside manifold-exception annotation processor, javac will fail to render this warning and throw an NPE instead, obscuring the warning.

Pre-19.3.0 Behaviour

The generator just generate without any [WARNING] logs.

19.3.0+ Behaviour

This behaviour is still observable as of 19.5.0.

This case can be reproduced in this sample project by running mvn compile.

At querybean-generator version 19.3.0, the querybeans generation logs the warning below but completes successfully. With -Werror, this warning triggers the -Werror error.

[INFO] --- compiler:3.15.0:compile (default-compile) @ querybean-generator-processor-issue ---
[INFO] Recompiling the module because of changed source code.
[INFO] Compiling 3 source files with javac [forked debug deprecation target 25] to target\classes
[INFO] -------------------------------------------------------------
[WARNING] COMPILATION WARNING :
[INFO] -------------------------------------------------------------
[WARNING] File for type 'embedded.example.EbeanEntityRegister' created in the last round will not be subject to annotation processing.
[INFO] 1 warning
[INFO] -------------------------------------------------------------

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages