[perl #131167] [JVM] Newly-added NQP test for catching exceptions fails on JVM

1 view
Skip to first unread message

Zoffix Znet

unread,
Apr 17, 2017, 11:15:02 AM4/17/17
to bugs-bi...@rt.perl.org
# New Ticket Created by Zoffix Znet
# Please include the string: [perl #131167]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/Ticket/Display.html?id=131167 >


I had to fudge it for the release and will unfudge after the release.

The test tests if a labeled exception is uncaught by inner unlabled handler and is caught by
outer labeled handler instead, but on JVM it's uncaught entirely.

Fudge: https://github.com/perl6/nqp/commit/0994e33818

Output of failing test:

Unhandled exception; category = 4224
in <anon> (gen/jvm/stage2/NQPHLL.nqp:1281)
in <anon> (gen/jvm/stage2/NQPHLL.nqp)
in catch_unlabeled_first (t/nqp/044-try-catch.t:428)
in <mainline> (t/nqp/044-try-catch.t:439)
in eval (gen/jvm/stage2/NQPHLL.nqp:1168)
in evalfiles (gen/jvm/stage2/NQPHLL.nqp:1371)
in command_eval (gen/jvm/stage2/NQPHLL.nqp:1265)
in command_line (gen/jvm/stage2/NQPHLL.nqp:1239)
in MAIN (gen/jvm/stage2/NQP.nqp:4130)
in <mainline> (gen/jvm/stage2/NQP.nqp:4126)
in <anon> (gen/jvm/stage2/NQP.nqp)

Christian Bartolomaeus via RT

unread,
Apr 18, 2019, 2:30:04 AM4/18/19
to perl6-c...@perl.org
I have committed https://github.com/perl6/nqp/commit/59d7a8869c and this test passes now.

As far as I understand, the right handler was missed when moving to the outside, because unwind_check sets the outer handler to 0 by default if no outer handler is passed. We do the latter now.

I'm closing this ticket as 'resolved'.
Reply all
Reply to author
Forward
0 new messages