-
-
Notifications
You must be signed in to change notification settings - Fork 404
feat: update java-errors.data
#4113
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
Conversation
📊 Quantitative test results for language: |
Ping! |
Ping @fzipi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Xhoenix What do we miss by just using "bare" class names instead of prefixing with additional words?
I don't see much difference, as we're including the "exception name". |
So if you happen to have a site that shows java documentation, you surely need to disable this. By adding extra prefixes, wouldn't that prevent some basic use cases? E.g. previously having the Can you add this concept to the prompt you used for generating this list, to see if we get additional strings to match? |
If you check line 2 and 50, you'll see the errors are similar to the ones I've added. I don't see any reason for FPs, unless a site shows java documentation itself, in which case normal java code will also be suspect to FPs. |
Using the same tool you used for generate this, I get this:
I still think adding the |
I think it's a good idea. Adding prefixes is simple with regex-assembly. |
We're still waiting for the results on performance comparison between pmFromFile and regex. |
For this case the difference will likely be negligible since the list is rather short. |
Actually, there are a lot of exceptions: https://docs.oracle.com/en/java/javase/21/docs/api/search.html?q=exception and errors: https://docs.oracle.com/en/java/javase/21/docs/api/search.html?q=error, and I've only scratched the surface. |
But you don't have to list every exception. Since you're using a regular expression, you can shorten, e.g., |
I'd proceed. I don't see that analysis being done any time soon. |
…nto update-java-errors
@Xhoenix Let's switch to regex then? |
Waiting for review. |
Looks good, tests are failing. |
Co-authored-by: Max Leske <250711+theseion@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Way more succint. Will wait for @theseion approval, but LGTM.
Thanks @Xhoenix! |
Closes #4073.