ebean-orm / ebean-agent

Enhancer Agent for EbeanORM
Apache License 2.0
12 stars 13 forks source link

Bug detection of "query beans" isn't tight enough - results in java.lang.NoSuchMethodError #127

Closed rbygrave closed 5 years ago

rbygrave commented 5 years ago

Refer to the discussion https://groups.google.com/forum/#!msg/ebean/gPRlOlW42zo/zj_iqfvkAAAJ

With relatively loose definition of enhancement packages and a class that matches the query bean naming convention ... then enhancement will treat that class as if it was a query bean when it is not.

This results in an error like:

java.lang.NoSuchMethodError: com.stuff.query.QueryService._someField()Lcom/stuff/other/SomeObject;
    at com.stuff.query.QueryService.getSomething(QueryService.java:338)