Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change DataRepository2 references to DataRepository #678

Closed
wants to merge 1 commit into from

Conversation

leewyatt
Copy link
Collaborator

Renamed all instances of DataRepository2 to DataRepository across the project. This change aligns with the recent updates in the jfxcentral-data project, where DataRepository2 was deprecated and renamed to DataRepository. This update ensures consistency with the latest project structure and removes references to the now-obsolete DataRepository2.

A subtle bug has been observed post-refactor, detailed as follows:

Replication Steps:
  1. Delete existing .jfxcentralrepo cache file.
  2. Run JFXCentral2App (develop).
  3. Observe the data loading process and subsequent console error indicating a missing ...people/people.json file. (no such fiel).
  4. A IndexOutOfBoundsException in QuickLinksGenerator's checkArrayList method because createShuffledSublist returns an empty list, contrary to expectations.
Possible Cause:

The bug seems related to the getRepositoryDirectory method in DataRepository (jfxcentral-data). The method’s behavior changes based on whether it is static or not:

Static: No bug triggered.
Non-static: Bug appears.

Renamed all instances of DataRepository2 to DataRepository across the project. This change aligns with the recent updates in the jfxcentral-data project, where DataRepository2 was deprecated and renamed to DataRepository. This update ensures consistency with the latest project structure and removes references to the now-obsolete DataRepository2.
Copy link
Collaborator

@FDelporte FDelporte left a comment

Choose a reason for hiding this comment

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

Looks good, to be retested with the change I just made regarding getRepositoryDirectory();

@leewyatt leewyatt closed this Dec 8, 2024
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