On Thu, 26 Oct 2000, Daniel Wickstrom wrote:
> >>>>> "Mo" == Mo DeJong <[EMAIL PROTECTED]> writes:
>
>
> Mo> What version of Tcl are you using? This should not show up
> Mo> with Tcl 8.3.2 or 8.4. At any rate, it does not matter.
>
> I'm using tcl version 8.3.2.
Strange, perhaps I was wrong and that only works for 8.4. Oh well.
> >> tclblend/javaTimer.test
> >>
> >>
> >> ==== javaTimer-3.1 JavaTimerProc ==== Contents of test case:
> >>
> >> set t [java::new tests.TimerHandlerTest $notifier 100] set
> >> result [java::field $t value] java::field $t err true lappend
> >> result [catch {$notifier doOneEvent 0} msg] $msg [java::field
> >> $t value]
> >>
> >> ==== Result was: 0 0 1 0 ---- Result should have been: 0 1
> >> {java.lang.NullPointerException: TimerHandlerTest} 1 ----
> >> javaTimer-3.1 FAILED
>
> Mo> Humm, I have not seen this error before either. Could this
> Mo> have something to do with your Notifier changes?
>
> No these tests were run before I made the notifier changes. This is a
> fresh checkout from cvs. Since making the notifier changes, I get the
> same errors, so the notifier modifications didn't change anything with
> regard to the test results.
It could be related to the event queue, I just don't see it on my box.
A printed stack trace would really help:
replace:
catch {$notifier doOneEvent 0} msg
with:
java::try {$notifier doOneEvent 0} catch {Exception e} {$e printStackTrace}
> Mo> If not, could you investigate it a bit more? Perhaps get a
> Mo> stack trace and print it to see where things are going wrong.
>
> I'll see what I can do. I want to write some tests that will exercise
> the enw notifer anyway.
Me thinks tcljava/tests/tcljava/JavaNotifier.test is in need of
writing. This could slurp up the Jacl specific and Tcl Blend
specific tests that are floating around too.
Mo DeJong
Red Hat Inc
----------------------------------------------------------------
The TclJava mailing list is sponsored by Scriptics Corporation.
To subscribe: send mail to [EMAIL PROTECTED]
with the word SUBSCRIBE as the subject.
To unsubscribe: send mail to [EMAIL PROTECTED]
with the word UNSUBSCRIBE as the subject.
To send to the list, send email to '[EMAIL PROTECTED]'.
An archive is available at http://www.mail-archive.com/tcljava@scriptics.com