Skip to content

Conversation

jeanbisutti
Copy link
Member

@jeanbisutti jeanbisutti requested a review from a team as a code owner March 11, 2025 14:23
Copy link
Member

@trask trask left a comment

Choose a reason for hiding this comment

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

Fix exception with Java 8

I support the change, but what is the exception that's occurring? wondering we're missing a test?

@jeanbisutti
Copy link
Member Author

It's a NumberFormatException, see #13173 (comment)

The exception is probably caught here:

logger.log(SEVERE, "Failed to execute " + agentListener.getClass().getName(), e);

And the following shut down hook would not be registered:

@laurit
Copy link
Contributor

laurit commented Mar 11, 2025

@jeanbisutti you sure about this, Double.parseDouble("1.8") works just fine. Perhaps you are confusing it with some earlier version of the code that might have used Integer.parseInt(System.getProperty("java.specification.version"));?

@jeanbisutti
Copy link
Member Author

@laurit Yes, I had Integer.parseInt(System.getProperty("java.specification.version") in mind

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.

3 participants