karelpeeters
09/10/2018, 5:20 PMchristophsturm
09/10/2018, 5:22 PMdiesieben07
09/10/2018, 5:35 PMchristophsturm
09/10/2018, 6:21 PMNikky
09/10/2018, 6:22 PMval f = File(MyClass::class.java!!.getProtectionDomain().getCodeSource().getLocation().getPath())
evanchooly
09/10/2018, 6:25 PMchristophsturm
09/10/2018, 6:32 PMfred.deschenes
09/10/2018, 7:40 PM.class
file as others mentioned above, but you'll have to either parse the .class file yourself or use a library that does it for you (Apache BCEL has that, I'm sure most other bytecode manipulation libs also do). BCEL implementation is here if you're curious : https://github.com/apache/commons-bcel/blob/trunk/src/main/java/org/apache/bcel/classfile/ClassParser.javachristophsturm
09/10/2018, 8:08 PM