Skip to content

Conversation

@lingting
Copy link
Contributor

No description provided.

@copytiao copytiao requested a review from LTCatt September 10, 2025 07:34
@copytiao copytiao added · 优化 等待确认 已经过社区确认,等待开发者确认 labels Sep 10, 2025
@LTCatt
Copy link
Member

LTCatt commented Sep 10, 2025

umm 是遇到什么问题了么?需要这样改(

@lingting
Copy link
Contributor Author

@LTCatt 因为从软链接的文件夹下面搜索到的 jdk 会被 JavaSearchLoaderSub 最终处理逻辑 忽略. 所以 如果搜索目标是软链接, 直接拿真实地址搜索, 这样子搜索到的就不会被忽略了.

PCL.ModJava.JavaSearchLoaderSub 中

            Dim JavaWithoutReparse As New Dictionary(Of String, Boolean)
            For Each Pair In JavaPreList
                Dim Folder As String = Pair.Key.Replace("\\", "\").Replace("/", "\")
                Dim Info As FileSystemInfo = New FileInfo(Folder & "javaw.exe")
                Do
                    If Info.Attributes.HasFlag(FileAttributes.ReparsePoint) Then
                        Log("[Java] 位于 " & Folder & " 的 Java 包含符号链接")
                        Continue For
                    End If
                    Info = If(TypeOf Info Is FileInfo, CType(Info, FileInfo).Directory, CType(Info, DirectoryInfo).Parent)
                Loop While Info IsNot Nothing
                Log("[Java] 位于 " & Folder & " 的 Java 不含符号链接")
                JavaWithoutReparse.Add(Pair.Key, Pair.Value)
            Next

@LTCatt LTCatt added 处理中 开发者正在调查或处理该项 🟨 中 优先度:中 and removed 等待确认 已经过社区确认,等待开发者确认 labels Sep 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

· 优化 处理中 开发者正在调查或处理该项 🟨 中 优先度:中

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants