Am not sure where to start with this one and hope it's not a stupid user error on my part.
I have a test that fails at runtime with the error below. If I write a simple class with a main() method and execute the same code, it works. If I move my classes into src/test/java from src/main/java, the test also starts working :S
I tried to create a simpler self-contained example, but was unable to reproduce the issue.
I tried rebuilding the project, etc, but no luck.
Any ideas much appreciated!
Thanks, Alfie.
java.lang.VerifyError: Bad type on operand stack
Exception Details:
Location:
com/akirkpatrick/vnt/RepositoryTests$object.setup()V @54: invokevirtual
Reason:
Type ‘jet/Tuple0’ (current frame, stack[0]) is not assignable to ‘com/akirkpatrick/vnt/repository/Repository$object’
Current Frame:
bci: @54
flags: { }
locals: { ‘com/akirkpatrick/vnt/RepositoryTests$object’, ‘java/io/File’ }
stack: { ‘jet/Tuple0’, ‘java/lang/String’ }
Bytecode:
0000000: bb00 1659 1218 b700 1c4c 2bb6 0020 9900
0000010: 122b b600 2399 0007 03a7 0004 04a7 0004
0000020: 0399 0010 bb00 2559 1227 b700 28c0 002a
0000030: bfb2 0030 1218 b600 35b1
Stackmap Table:
append_frame(@28,Object[#22])
same_locals_1_stack_item_frame(@29,Integer)
same_frame(@32)
same_locals_1_stack_item_frame(@33,Integer)
same_frame(@49)