Skip to content

Instantly share code, notes, and snippets.

@daveray
Created August 4, 2011 02:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daveray/1124352 to your computer and use it in GitHub Desktop.
Save daveray/1124352 to your computer and use it in GitHub Desktop.
proxy-super on protected method
user=> (proxy [javax.swing.JPanel] []
(paintComponent [^java.awt.Graphics g]
(let [^javax.swing.JPanel this this]
(proxy-super paintComponent g))
(.fillRect g 100 100 10 10)))
Reflection warning, NO_SOURCE_PATH:27 - call to paintComponent can't be resolved.
#<JPanel$0 user.proxy$javax.swing.JPanel$0[,0,0,0x0,invalid,layout=java.awt.FlowLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=9,maximumSize=,minimumSize=,preferredSize=]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment