Skip to content

Conversation

@jonpryor
Copy link
Contributor

Context: https://paper.dropbox.com/doc/OpenJDK-and-You--AH1yWKdVXgno~uXYfmcUAZTwAg-NoECAe2XkBQeoxFfGL6ea

Add AndroidSdkInfo.DetectAndSetPreferredJavaSdkPathToLatest().

@jonpryor jonpryor requested review from bratsche, grendello and joj July 27, 2018 23:21

var latestJdk = JdkInfo.GetMacOSMicrosoftJdks (logger).FirstOrDefault ();
if (latestJdk == null)
throw new NotSupportedException ("No preferred Java SDK could be found.");
Copy link
Contributor

Choose a reason for hiding this comment

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

JdkInfo.GetMacOSMicrosoftJdks() returns a list of all our Microsoft OpenJDK installs, not a list of preferred Java SDKs, right? This exception message might cause some confusion.

@jonpryor jonpryor force-pushed the jonp-DetectAndSetPreferredJavaSdkPathToLatest branch from c99f168 to 91c2ddd Compare July 28, 2018 15:46
@jonpryor jonpryor merged commit a4aad18 into dotnet:master Jul 30, 2018
jonpryor added a commit that referenced this pull request Aug 2, 2018
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