Re: Class loading in PbFormatUtils.getDescriptor

2022-11-14 Thread Martijn Visser
Hi Theo, Disclaimer: I work for Immerok When we were working on a recipe for processing Protobuf [1], we used the protoc-jar-maven-plugin and build-helper-maven-plugin to generate the classes and add them to the classpath. Perhaps that would also help you. Best regards, Martijn [1] https://doc

Class loading in PbFormatUtils.getDescriptor

2022-11-14 Thread Theodor Wübker
Hey everyone, there is some use of reflection in PbFormatUtils.getDescriptor: Namely they get the Threads ClassLoader to load a protobuf-generated class. First of all, this appears to be a bad practice in general (refer first answer in this stackoverflow