Skip to content

fix: sort classes by name in ReflectionsClassFinder (#14556) (CP: 23.2)#14622

Merged
mcollovati merged 1 commit into
23.2from
cherry-pick-14556-to-23.2-1663926847670
Sep 23, 2022
Merged

fix: sort classes by name in ReflectionsClassFinder (#14556) (CP: 23.2)#14622
mcollovati merged 1 commit into
23.2from
cherry-pick-14556-to-23.2-1663926847670

Conversation

@vaadin-bot

Copy link
Copy Markdown
Collaborator

No description provided.

Class scan in production build may differ from development mode because
DefaultClassFinder and ReflectionsClassFinder may provide classes in different
order. As a result, when there are multiple NpmPackage annotations for
the same package wit different version, the final version used in
package.json may be different in dev mode and production build.

This change makes ReflectionsClassFinder sort classes by name,
as DefaultClassFinder does in its constructor.

Ref #14381
@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@github-actions

Copy link
Copy Markdown

Unit Test Results

   923 files  +   189     923 suites  +189   51m 42s ⏱️ + 7m 10s
6 034 tests +2 067  5 981 ✔️ +2 065  53 💤 +3  0  - 1 
6 262 runs  +2 094  6 202 ✔️ +2 092  60 💤 +3  0  - 1 

Results for commit 0504556. ± Comparison against base commit 4e4446c.

@mcollovati mcollovati merged commit 5443cc9 into 23.2 Sep 23, 2022
@mcollovati mcollovati deleted the cherry-pick-14556-to-23.2-1663926847670 branch September 23, 2022 10:44
@vaadin-bot

Copy link
Copy Markdown
Collaborator Author

This ticket/PR has been released with Vaadin 23.2.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants