-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CARE no cglib #111
base: master
Are you sure you want to change the base?
CARE no cglib #111
Conversation
…out rebuilding the class
… and temporarly run this test many times
import static org.testng.Assert.assertTrue; | ||
import static org.testng.Assert.fail; | ||
|
||
public class RDBITest { | ||
|
||
interface TestDAO { | ||
public interface TestDAO { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this type of change will probably cause some problems for updating users. if the interface isn't in the com.lithium.dbi.rdbi
package, we are unable to create a proxy for it unless it is public (previously we could).
rdbi-parent/pom.xml
Outdated
<source>1.8</source> | ||
<target>1.8</target> | ||
<source>11</source> | ||
<target>11</target> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could probably still build this for 1.8, otherwise we'll need to maintain a separate java11+ release branch
<dependencies> | ||
<dependency> | ||
<groupId>cglib</groupId> | ||
<artifactId>cglib-nodep</artifactId> | ||
<groupId>net.bytebuddy</groupId> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
neat, where did you find this library?
it's like a mostly drop in replacement of cglib.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from the cglib homepage - https://github.com/cglib/cglib
IMPORTANT NOTE: cglib is unmaintained and does not work well (or possibly at all?) in newer JDKs, particularly JDK17+. If you need to support newer JDKs, we will accept well-tested well-thought-out patches... but you'll probably have better luck migrating to something like ByteBuddy.
no cg lib
why?
trying to go to java 17
cglib relies on internal apis that are no longer available
They recommend you use byte buddy or something like it