Skip to content

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

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

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

3 participants