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

BinaryTypeBinding: enrich RuntimeException with filename #3528

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jukzi
Copy link
Contributor

@jukzi jukzi commented Jan 7, 2025

During internal errors it is not clear which file did contain the problematic binary. For example:

#3516

Example output will be like: "java.lang.RuntimeException: RuntimeException caching =P/libGh375.jar|TestGh375.class"

@jukzi jukzi requested a review from stephan-herrmann January 7, 2025 07:29
@stephan-herrmann
Copy link
Contributor

If this is just for investigating #3516 and will be removed afterwards, I have no objections.

If, however, this is intended to stay, wouldn't it be better to wrap the exception in or near BTB.cachePartsFrom()? That would benefit more scenarios, no?

As for the exception message: it's not really the caching that creates problems, but loading the binary type does :)

During internal errors it is not clear which file did contain the
problematic binary. For example:

eclipse-jdt#3516

Example output will be like: "java.lang.RuntimeException:
RuntimeException loading =P/libGh375.jar|TestGh375.class"
@jukzi jukzi force-pushed the MatchLocator_RTE branch from c7cf381 to 5914a7d Compare January 8, 2025 07:03
@jukzi
Copy link
Contributor Author

jukzi commented Jan 8, 2025

If, however, this is intended to stay, wouldn't it be better to wrap the exception in or near BTB.cachePartsFrom()? That would benefit more scenarios, no?

I would like to let it stay as similar error may appear in the future. I moved it to BTB as requested and changed the text to "loading". ok?

@jukzi jukzi changed the title MatchLocator: enrich RuntimeException with filename BinaryTypeBinding: enrich RuntimeException with filename Jan 8, 2025
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