microsoft / microsoft/winget-pkgs

[Package Issue]: JDK 11 being upgraded to Oracle.JDK.17

Open
#165,710 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue-Bug
Dominant language
No language data
Stars
11.1k
Forks
9.7k
Avg merge
1h 32m
Merged PRs (30d)
376

Description

Please confirm these before moving forward
  • I have searched for my issue and not found a work-in-progress/duplicate/resolved issue.
  • I have not been informed if the issue is resolved in a preview version of the winget client.
Category of the issue

Installation issue.

Brief description of your issue

Java SE Development Kit 11 is being confused by winget as Java SE Development Kit 17.

Steps to reproduce
  1. Install Java(TM) SE Development Kit 11.0.22 (64-bit)
  2. Check for updates with winget
    winget update
  3. Get prompted to update to JDK 17
PS C:\> winget list -q "Java(TM) SE Development Kit 11.0.22"
Name                                         Id            Version   Available Source
-------------------------------------------------------------------------------------
Java(TM) SE Development Kit 11.0.22 (64-bit) Oracle.JDK.17 11.0.22.0 17.0.12.0 winget
Actual behavior

Winget wants to update JDK 11 to JDK 17.

PS C:\> winget update
Name                                         Id                         Version     Available Source
----------------------------------------------------------------------------------------------------
Java(TM) SE Development Kit 11.0.22 (64-bit) Oracle.JDK.17              11.0.22.0   17.0.12.0 winget
PS C:\> winget list -q "Java(TM) SE Development Kit 11.0.22"
Name                                         Id            Version   Available Source
-------------------------------------------------------------------------------------
Java(TM) SE Development Kit 11.0.22 (64-bit) Oracle.JDK.17 11.0.22.0 17.0.12.0 winget
Expected behavior

JDK 11 should not be confused as JDK 17.

Environment
Windows Package Manager (Preview) v1.9.1981-preview
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.26120.961
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.24.1981.0

Winget Directories
-------------------------------------------------------------------------------------------------------------------------------
Logs                               %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
User Settings                      %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json
Portable Links Directory (User)    %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User)       %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portable Package Root              C:\Program Files\WinGet\Packages
Portable Package Root (x86)        C:\Program Files (x86)\WinGet\Packages
Installer Downloads                %USERPROFILE%\Downloads

Links
---------------------------------------------------------------------------
Privacy Statement   https://aka.ms/winget-privacy
License Agreement   https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage            https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale

Admin Setting                             State
--------------------------------------------------
LocalManifestFiles                        Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride                     Disabled
LocalArchiveMalwareScanOverride           Disabled
ProxyCommandLineOptions                   Disabled
DefaultProxy                              Disabled
Screenshots and Logs
2024-08-02 03:19:09.270 [REPO] Adding manifest for [ARP\Machine\X64\{F310E654-6A0E-5337-85BC-34C20401B1D7}, 11.0.22.0] at relative path []
2024-08-02 03:19:09.270 [REPO] Did not find an Id { ARP\Machine\X64\{F310E654-6A0E-5337-85BC-34C20401B1D7} }

2024-08-02 03:19:09.968 [REPO] Finding available package from installed package using system reference search: Query:[none] Include:ProductCode='{f310e654-6a0e-5337-85bc-34c20401b1d7}'[Exact] Include:UpgradeCode='{64a3a4f4-b792-11d6-a78a-00b0d0200110}'[Exact] Include:NormalizedNameAndPublisher='javasedevelopmentkit'+'oracle'[Exact] Include:NormalizedNameAndPublisher='javasedevelopmentkit(x64)'+'oracle'[Exact]
2024-08-02 03:19:09.968 [REPO]  ... searching source: msstore [StoreEdgeFD]
2024-08-02 03:19:09.968 [REPO] Performing search: Query:[none] Include:ProductCode='{f310e654-6a0e-5337-85bc-34c20401b1d7}'[Exact] Include:UpgradeCode='{64a3a4f4-b792-11d6-a78a-00b0d0200110}'[Exact] Include:NormalizedNameAndPublisher='javasedevelopmentkit'+'oracle'[Exact] Include:NormalizedNameAndPublisher='javasedevelopmentkit(x64)'+'oracle'[Exact]
2024-08-02 03:19:09.970 [REPO]  ... searching source: winget [Microsoft.Winget.Source_8wekyb3d8bbwe]
2024-08-02 03:19:09.970 [REPO] Performing search: Query:[none] Include:ProductCode='{f310e654-6a0e-5337-85bc-34c20401b1d7}'[Exact] Include:UpgradeCode='{64a3a4f4-b792-11d6-a78a-00b0d0200110}'[Exact] Include:NormalizedNameAndPublisher='javasedevelopmentkit'+'oracle'[Exact] Include:NormalizedNameAndPublisher='javasedevelopmentkit(x64)'+'oracle'[Exact]
2024-08-02 03:19:09.971 [REPO] Performing search: Query:[none] Include:ProductCode='{f310e654-6a0e-5337-85bc-34c20401b1d7}'[Exact] Include:UpgradeCode='{64a3a4f4-b792-11d6-a78a-00b0d0200110}'[Exact] Include:NormalizedNameAndPublisher='javasedevelopmentkit'+'oracle'[Exact] Include:NormalizedNameAndPublisher='javasedevelopmentkit(x64)'+'oracle'[Exact]
2024-08-02 03:19:09.972 [REPO]  ... adding available package: Oracle.JDK.17

WinGet-2024-08-01-20-48-13.033.log

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported winget list and winget update behavior for Java SE Development Kit 11.0.22, then inspect the Oracle.JDK.17 package metadata and the attached WinGet log's package matching entries. Done means JDK 11 is no longer matched to Oracle.JDK.17 as an available update.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
cli, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.