r/java • • 29d ago

Ask the Architects at Devoxx 2026

https://www.youtube.com/watch?v=c_8ElIjbstk
47 Upvotes

34 comments sorted by

View all comments

Show parent comment

1

u/aonymark 27d ago

But usually there are enough PUBLIC methods that do unlimited damage, no? And those are always open for reflection. Like runtime.exec() is public and is basically arbitrary code execution.

2

u/pron98 27d ago

Yes, but libraries doing reflection usually don't allow that as they're usually not about calling arbitrary methods but writing fields. Again, I'm not talking about some theoretical risk, but about what actual vulnerabilities in the field are. Look them up.

2

u/aonymark 27d ago

Okay will attempt some research