You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CC: @manoskouk
By adding duplicated methods/fields is possible to generate ill-formed class files without any warnings; failing at runtime with ClassFormatError.
Tracking duplicated methods/fields is a bit hard since methods can change their static-ness; the check should be done on build-time...
I have a slightly more general solution; which consists in loading the class file (without resolving any dependencies) after being generated just to verify it's correctness by ensuring it passes the JVM checks.
Any comments?
The text was updated successfully, but these errors were encountered:
CC: @manoskouk
By adding duplicated methods/fields is possible to generate ill-formed class files without any warnings; failing at runtime with ClassFormatError.
Tracking duplicated methods/fields is a bit hard since methods can change their static-ness; the check should be done on build-time...
I have a slightly more general solution; which consists in loading the class file (without resolving any dependencies) after being generated just to verify it's correctness by ensuring it passes the JVM checks.
Any comments?
The text was updated successfully, but these errors were encountered: