- assigned_to: nobody --> marcsskyhunter
When run on Win2K, using either Java 1.3 or Java 1.4,
the test script EPainter.updoc, included below, shows
as its background approximately a snapshot the original
screen bitmap that it covers up. If covered and
uncovered again, it again does something similar.
This would be a security hole as well a bug, since the
panel is able to show information that the panel owner
had no access to. Until this is fixed, the
EPainter.safej file does not declare this class safe,
thereby downgrading this from a security hole to a mere
bug.
? (def makeJFrame := <unsafe:javax.swing.JFrame>
> def ColorBlack := <unsafe:java.awt.Color> black()
> def makeEPainter := <unsafe:com.zooko.tray.EPainter>)
# value: <unsafe:com.zooko.tray.EPainter>
? def helloer {
> to paint(g) {
> println("mubmle\n")
> g setColor(ColorBlack)
> E call(g, "drawString(String, int, int)", ["hello",
10, 10])
> g fillOval(10, 10, 100, 100)
> }
> }
# value: <helloer>
? (def myep := makeEPainter(helloer)
> def myjf := makeJFrame()
> myep setOpaque(false)
> myjf setContentPane(myep)
> myjf setSize(256, 256)
> myjf setVisible(true))
?
mubmle
?