# New Ticket Created by  Christian Bartolomaeus 
# Please include the string:  [perl #130556]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=130556 >


With Rakudo commit bcc113cfb0 (Migrate combinations(n,k) logic to
Iterator.Combinations) I get some aborted tests for combinations
during spectest (running rakudo-j).

I think it comes down to this failure:

$ ./perl6-j -e '(2).combinations(0)'
java.lang.RuntimeException: No such attribute '$!reified' for this object
  in method pull-one at gen/jvm/CORE.setting line 2931
  in method sink-all at gen/jvm/CORE.setting line 2821
  in method sink at gen/jvm/CORE.setting line 17172
  in block <unit> at -e line 1

This works as expected, so the (0) case seems to be the culprint:

$ ./perl6-j -e 'say (1, 2, 3).combinations(1..3).list.perl'
((1,), (2,), (3,), (1, 2), (1, 3), (2, 3), (1, 2, 3))

The full backtrace looks like this:

$ ./perl6-j --ll-exception -e '(2).combinations'
java.lang.RuntimeException: No such attribute '$!reified' for this object
  in pull-one (gen/jvm/CORE.setting:2931)
  in pull-one (gen/jvm/CORE.setting:2964)
  in sink-all (gen/jvm/CORE.setting:2821)
  in sink (gen/jvm/CORE.setting:17172)
  in <unit> (-e:1)
  in <unit-outer> (-e:1)
  in eval (gen/jvm/stage2/NQPHLL.nqp:1165)
  in  (gen/jvm/stage2/NQPHLL.nqp:1255)
  in command_eval (gen/jvm/stage2/NQPHLL.nqp:1252)
  in command_eval (src/Perl6/Compiler.nqp:27)
  in command_line (gen/jvm/stage2/NQPHLL.nqp:1236)
  in MAIN (gen/jvm/main.nqp:47)
  in <mainline> (gen/jvm/main.nqp:38)
  in  (gen/jvm/main.nqp)

Reply via email to