I had the same issue, please post the code fragment where you call makeClass on the ClassPool so I can check if it's the same case.
Reply to this message by going to Community
Start a new discussion in Javassist at Community