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 gradle wrapper version to support Java 16. #50

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

Updated gradle wrapper version to support Java 16. #50

wants to merge 2 commits into from

Conversation

gudenau
Copy link

@gudenau gudenau commented Apr 25, 2021

No description provided.

@@ -397,18 +384,46 @@ public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IO
List<ClassInstance> ret = new ArrayList<ClassInstance>();

if (file.toString().endsWith(".class")) {
ClassInstance res = analyze(isInput, tags, srcPath, Files.readAllBytes(file));
ClassInstance res = analyze(isInput, tags, srcPath, OptionalInt.empty(), Files.readAllBytes(file)); // FIXME?
Copy link
Contributor

Choose a reason for hiding this comment

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

No need for fixme; mrj mechanism doesn't exist for flat directory


boolean isMrj = false;
if(file.getFileName().toString().endsWith(".jar")){
System.out.println("jar");
Copy link
Contributor

Choose a reason for hiding this comment

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

I recall java util's jar file api has support for getting version-aware jar entries. If there is existing api, we should use those than build our own since our own is vulnerable to ignoring impl/api requirements

@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0-bin.zip
Copy link
Member

Choose a reason for hiding this comment

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

You can also update the github workflows to use java 16 now.

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