Open DaniSalasDev opened 1 year ago
I can't reproduce this issue. See also test at: https://github.com/ebean-orm/ebean-agent/blob/master/test/src/test/java/test/enhancement/MockEntityBeanTest.java
Given the Duplicate method name "_ebean_getMarker"
... error that should not occur so there is something odd perhaps with the build time enhancement via maven or gradle? What is the build time enhancement you are using? Can you put up an example project that reproduces the issue? [or clone ebean-agent and reproduce via the MockEntityBeanTest?]
Also have a look at the ebean.mf synthetic: false
option. That makes the code added via enhancement not synthetic and hence visible via byte code viewers. Given the Duplicate method name "_ebean_getMarker"
we probably want to set synthetic: false
so that we can look at the class in terms of byte code.
https://github.com/ebean-orm/ebean-agent/blob/master/test/src/test/resources/ebean.mf#L6
That would be a legacy SBT project; I've extracted a sample project reproducing the issue:
Refer https://github.com/ebean-orm-tools/ebean-idea-enhancer/issues/2
IntelliJ IDEA 2022.2 (Community Edition) Ebean enhancer 13.6.1
Log trace: