DrJava Version : 20040326-2216
Windows XP Pro:
When I enable the windows L&F and run a junit test
where at least one test fails, the status bar still
remains green at the end of the test. (It turns red in
the default L&F). This may be a swing issue and not an
us issue. I think it is indeed important though
because we dont want people thinking their code is
passing unit tests when in fact something is failing.
-- Matt
Logged In: YES
user_id=1039473
With both the stable release you mentioned using and the
current snapshot of CVS, I can't reproduce the bug. With a
single test file where the first test passes and the second
test fails, the proper behavior occurs in both the Windows
L&F and the Windows Classic L&F.
Can you provide the test class you were using when the bug
occured?
Logged In: YES
user_id=833303
I agree that the bug is not present in the classic L&F on my
box. Did you try running on Windows XP? Keep in mind that
the L&F variant changes between Windows9X/Windows2000 and
WindowsXP, which makes me think this may be a Sun issue.
I can not give you the classes that produce this error
(company code) but I will try and craft similar classes on
my box that also produce this behavior and send them to you.
-- Matt
screen shot
Logged In: YES
user_id=833303
See attached screen shot for more info:
Logged In: YES
user_id=833303
Jones.java
Tested Classs
Logged In: YES
user_id=833303
JonesTester.java
TestCase
Logged In: YES
user_id=833303
See Uploaded Files Below:
Logged In: YES
user_id=1039473
The problem seems to only occur when the Windows display
appearance is set to Windows XP Style in Display Properties.
If the Windows and buttons style is set to Windows Classic
style then the bug is not evident. This does not appear to
be a bug in DrJava itself, bug instead is either an effect
of XP overriding the color of the status bar or a bug in the
JVM. We should either see if we can find a workaround so
that it functions correctly or file the bug report with Sun
so that they can produce a more correct JVM for Windows that
will properly overlay the bitmap on the statusbar.
Logged In: YES
user_id=833303
I agree. My money was on Sun when I first saw the error. I
have no idea how to file a bug with Sun though...
Logged In: YES
user_id=697810
I thought there was already a report of this, but I can't
find it. I remember seeing it last summer when 1.4.2 first
introduced the Windows XP L&F. As a side-note, the Windows
L&F is the Windows Classic L&F when you're not using pretty
XP-ness in Windows.
Anyway, this is closer to being a "feature" of Windows
XP-looking progress bars -- you'll note that they all look
like that in Windows. It's an effect of the fact that Luna
is used to render the appearance of the progress bars; the
little green things are actually bitmaps, I believe. There
is a bug report at Sun
(http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5047032).
Sun has closed it, saying that it's not a bug, which it
arguably is not. There's some code in the bug report that
shows how to change the bitmaps that get used to paint the
progress bars, but we decided last summer the issue wasn't
serious enough to do all that hacking for. If you guys want
to, go ahead and poke through the Windows branch to add some
code to fix that stuff. It'd be kinda nice, but be careful
to test on a win2k machine and ideally a win9x machine as
well, as the XP L&F will not ever appear there (though I
think the code is the same).
Logged In: YES
user_id=952966
It works now. In the windows xp LAF, that specific progress
bar looks the same as in the metal LAF. This change will
take effect in the next stable release of drjava in mid August.