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

Updated the getInputStream method on EmbeddedJars to just use the Jar… #1422

Merged
merged 2 commits into from
Jul 31, 2023

Conversation

jbedell-newrelic
Copy link
Contributor

…File.getInputStream for a entry by name, rather than parsing thru them.

This Is fixing a problem where sometimes a JAR file in constructed in such a way that JarInputStream can't seem to process it correctly, possibly due to the order of the entries inside. (Possibly related to this: https://bugs.openjdk.org/browse/JDK-8031748 )

…File.getInputStream for a entry by name, rather than parsing thru them.

This Is fixing a problem where sometimes a JAR file in constructed in such a way that JarInputStream can't seem to process it correctly, possibly due to the order of the entries inside.  (Possibly related to this: https://bugs.openjdk.org/browse/JDK-8031748 )
@jbedell-newrelic jbedell-newrelic requested a review from a team July 28, 2023 19:13
Copy link
Contributor

@meiao meiao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice find.

@codecov-commenter
Copy link

Codecov Report

Merging #1422 (a568356) into main (06f080e) will increase coverage by 0.02%.
The diff coverage is 100.00%.

❗ Current head a568356 differs from pull request most recent head ba5b1fb. Consider uploading reports for the commit ba5b1fb to get more accurate results

@@             Coverage Diff              @@
##               main    #1422      +/-   ##
============================================
+ Coverage     68.60%   68.63%   +0.02%     
- Complexity     9493     9495       +2     
============================================
  Files           816      816              
  Lines         39365    39358       -7     
  Branches       5967     5965       -2     
============================================
+ Hits          27006    27012       +6     
+ Misses         9692     9684       -8     
+ Partials       2667     2662       -5     
Files Changed Coverage Δ
...om/newrelic/agent/service/module/EmbeddedJars.java 92.30% <100.00%> (+13.51%) ⬆️

... and 4 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@jbedell-newrelic jbedell-newrelic merged commit b028be1 into main Jul 31, 2023
@jbedell-newrelic jbedell-newrelic deleted the 1340_MissingGroupIDAndChecksum branch July 31, 2023 12:08
@meiao meiao linked an issue Aug 11, 2023 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

GroupId missing from Library
4 participants