matthiasblaesing commented on PR #9396: URL: https://github.com/apache/netbeans/pull/9396#issuecomment-4536320147
As I have to assume I won't get a quick test of the fix (https://github.com/apache/netbeans/issues/9371#issuecomment-4527974092), I created my own reproducer: - Demo Library having a single class `eu.doppelhelix.test.multireleasesample.Demo` that returns the target version via `getVersion`. The project has a base implementation (target 8) and the real reproducer for 21, that also contains an implemenation in another package, only present in the 21 versioned directory. [multireleaseloading.zip](https://github.com/user-attachments/files/28231506/multireleaseloading.zip) - A module that calls into the library (Mainmenu -> View -> Dump Version) [multireleasesample.zip](https://github.com/user-attachments/files/28231511/multireleasesample.zip) Assuming the sample is run on JDK 21+, with a build from master you get: <img width="1348" height="402" alt="grafik" src="https://github.com/user-attachments/assets/72ae258e-cec7-4af6-9b15-a381c9b8fe6a" /> With this PR the result is the expected: <img width="327" height="177" alt="grafik" src="https://github.com/user-attachments/assets/cea02029-df8d-4441-b9f1-3ee7e110a17e" /> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
