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

Fixes error not properly being caught #5798

Merged
merged 2 commits into from
Jul 9, 2023

Conversation

TheLimeGlass
Copy link
Collaborator

@TheLimeGlass TheLimeGlass commented Jul 7, 2023

Description

Since we're using the class loader of a provided plugin, the error if no class being found gets sent through NoClassDefFoundError and not ClassNotFoundException because NoClassDefFoundError refers to the class loader not being able to find the class.

This resulted in Skript critical hard failing, disabling itself and being unresponsive, becoming a pain to task manager end task for the testing environment and addons. Now it errors without crashing itself.

@TheLimeGlass TheLimeGlass added bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. priority: high Issues with potentially high impact that could be harmful to users. labels Jul 7, 2023
@TheLimeGlass TheLimeGlass added 2.7 Targeting a 2.7.X version release priority: medium Issues that are detrimental to user experience (prohibitive bugs or lack of useful implementation). and removed priority: high Issues with potentially high impact that could be harmful to users. labels Jul 7, 2023
@TheLimeGlass TheLimeGlass merged commit 6caf20c into master Jul 9, 2023
@TheLimeGlass TheLimeGlass deleted the fix/utils-getclasses-throws branch July 9, 2023 23:49
TheLimeGlass added a commit that referenced this pull request Jul 9, 2023
Update Utils.java

(cherry picked from commit 6caf20c)
TheLimeGlass added a commit that referenced this pull request Jul 27, 2023
Fixes error not properly being caught (#5798)

Update Utils.java

(cherry picked from commit 6caf20c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.7 Targeting a 2.7.X version release bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. priority: medium Issues that are detrimental to user experience (prohibitive bugs or lack of useful implementation).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants