Giter VIP home page Giter VIP logo

Comments (5)

weaselmetal avatar weaselmetal commented on May 28, 2024

Huh, I noticed that a sources.jar file exists (https://repo1.maven.org/maven2/software/aws/rds/aws-mysql-jdbc/1.1.0/), but it appears that my IDE isn't happy with it. This could be a problem on my end, I need to double check.

from aws-mysql-jdbc.

weaselmetal avatar weaselmetal commented on May 28, 2024

Doesn't seem to be an IDE problem.
I can see the source code for class software.aws.rds.jdbc.mysql.Driver, but it appears for everything in package software.aws.rds.jdbc.mysql.shading the source code is unavailable.

from aws-mysql-jdbc.

sergiyvamz avatar sergiyvamz commented on May 28, 2024

Hello @weaselmetal

Thank you for reaching out! As you mentioned snapshot of sources is available on Maven Central. Also, you can fetch sources from github by a release tag. Most of IDE supports git repositories and can fetch sources by commit ID or a tag.

https://github.com/awslabs/aws-mysql-jdbc/tree/1.1.0

During a build process some of dependent libraries are shading into a software.aws.rds.jdbc.mysql.shading package. That's why such package can't be found in driver sources.

from aws-mysql-jdbc.

weaselmetal avatar weaselmetal commented on May 28, 2024

Thanks @sergiyvamz. I don't understand what's happening exactly, but the result of that build process is: in my project, I only see class software.aws.rds.jdbc.mysql.shading.com.mysql.cj.jdbc.ConnectionImpl (to give one example), which - I think - is somehow the class that's created based on https://github.com/awslabs/aws-mysql-jdbc/blob/main/src/main/user-impl/java/com/mysql/cj/jdbc/ConnectionImpl.java which lives in package com.mysql.cj.jdbc.
It seems impossible to see the source code of software.aws.rds.jdbc.mysql.shading.com.mysql.cj.jdbc.ConnectionImpl in my IDE, hence, it's also impossible to debug any of that code in the shading package.
I consider the inability to debug complex behavior (fail over and hopefully read-write splitting soon too) as a real issue.

from aws-mysql-jdbc.

sergiyvamz avatar sergiyvamz commented on May 28, 2024

Hello @weaselmetal

Shading definitely adds some complexity to debugging process however it helps to make AWS Mysql JDBC Driver compatible with Mysql JDBC Driver when both drivers are used in the same application.

When debugging the driver project, shading is not applicable and IDE recognises classes in their original packages, for example com.mysql.cj.jdbc.ConnectionImpl.

When debugging a user application that uses the driver jar, IDE still recognises shaded packages and properly navigates to the classes, for example software.aws.rds.jdbc.mysql.shading.com.mysql.cj.jdbc.ConnectionImpl

from aws-mysql-jdbc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.