Skip to content
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

Open
wants to merge 29 commits into
base: master
Choose a base branch
from
Open

CARE no cglib #111

wants to merge 29 commits into from

Conversation

gjesse
Copy link
Contributor

@gjesse gjesse commented Dec 28, 2022

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

import static org.testng.Assert.assertTrue;
import static org.testng.Assert.fail;

public class RDBITest {

interface TestDAO {
public interface TestDAO {
Copy link
Contributor Author

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).

<source>1.8</source>
<target>1.8</target>
<source>11</source>
<target>11</target>
Copy link
Contributor Author

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>
Copy link
Contributor

@phutwo phutwo Jan 4, 2023

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.

Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants