mistraltechnologies / smog-javassist

Javassist-based proxy generator extension for Smog
BSD 3-Clause "New" or "Revised" License
0 stars 2 forks source link

InaccessibleObjectException when used with JDK 17 #1

Open GerroDen opened 1 month ago

GerroDen commented 1 month ago

Hello,

I come across an reflect.InaccessibleObjectException when trying to use SMOG with javassist. I also found out that there is an issue about it in javassist: https://github.com/jboss-javassist/javassist/issues/369. This issue states that you no longer can use ctClass.toClass() but have to use ctClass.toClass(neigborClass). The code actually uses ctClass.toClass() in https://github.com/mistraltechnologies/smog-javassist/blob/master/src/main/java/com/mistraltech/smog/proxy/javassist/util/JavassistClassUtils.java#L56 What else can I do to make it work?

richardjwilson commented 1 month ago

Thank you for raising this - I will look into it.