(set! *warn-on-reflection* true)
(proxy [javax.swing.JPanel] []
(paintComponent [#^java.awt.Graphics g]
(proxy-super paintComponent g)
(.fillRect g 100 100 10 10)))
"Reflection warning, call to paintComponent can't be resolved"
Because proxy-super use implicit this
.
(let [^javax.swing.JPanel this this]
(proxy-super paintComponent g))
It looks like the warning is for the line
(proxy-super paintComponent g)
Does the parent class of javax.swing.JPanel have a paintComponent method?
Removing that line works for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With