Heinz Kabutz - Dirty Hacks With Java Reflection - Trójmiasto JUG [17.10.2016]

youtube.com 7 lat temu


Zapraszamy Was na prezentację Heinza Kabutza: autora popularnego newslettera: "The Java Specialists' Newsletter" (http://www.javaspecialists.eu) docierającego do odbiorców w ponad 130 krajach. Heinz Kabutz przylatuje do Gdańska na zaproszenie firmy Spartez (spartez.com) aby poprowadzić 3-dniowe szkolenie 'Extreme Java - Concurrency Performance for Java 8'

Hainz opowie o tym co tygryski lubią najbardziej - czyli o mięsku: Dirty Hacks With Java Reflection (includes one or two useful hints)

Java allows us to bypass language security and peek directly into the contents of objects, calling methods and even constructing them. Usually this is fraught with danger. It binds you to a particular Java version, blocking your upgrade path. Dangerous. That said, I use reflection a lot as a tool to quickly and accurately discover things about objects that would be difficult to determine any other way. And then I throw the code away. Knowing how reflection works can save you a lot of time when you need to confirm performance issues. Whilst seldom a permanent solution, it can be a temporary hack until the architecture can be changed.