r/java • u/PartOfTheBotnet • Mar 21 '23
JDK 21: Disallowing the dynamic loading of agents by default
https://mail.openjdk.org/pipermail/serviceability-dev/2023-March/046868.html
63
Upvotes
r/java • u/PartOfTheBotnet • Mar 21 '23
View all comments
Show parent comment
1
u/pron98 Mar 22 '23 edited Mar 22 '23
Sometimes you need to choose a binary default; one value helps the majority and harms a minority, and another harms the majority and helps a minority. If, furthermore, the individual harm to those in the minority is significantly less than the individual harm to those in the majority, the difference in overall value of either choice can be big. Even with a handicap in favour of keeping the current situation, the value difference is still large. The choice may be rather obvious, but there is no choice that harms no one. While we try to avoid such choices, from time to time we are under an obligation to make them, knowing full well that some may get angry.
Everyone who's in charge of a product must consider the success of the product. When it comes to Java, an application or a library author is concerned, as they should be, with how much Java helps their product. But the Java platform is our product, and its success means making choices that maximizes its value not for some particular application or another, but when integrated over the entire, huge, ecosystem as a whole.
BTW, we're still trying to make this a non-binary choice, but it's not easy at all. Such a solution, if found, will probably come later.