How do you get the text fixtures to also emit the ...
# compiler
c
How do you get the text fixtures to also emit the JVM bytecode for a given test file? I've tried to use
AbstractFirBytecodeTextTest
,
AbstractIrBytecodeListingTest
, and a few others, and they all end up with some random dependency like
testData/minimalJVM/...
that I just can't provide.
d
In the kotlin repo we have a minimized version of the jdk, which we use for test by default to optimize the test exectution. There is also an option to include the full JDK using the
FULL_JDK
directive. If you add it to the list of default directives of the test, your problem should gone.
❗ 1
c
With that set, I get this error:
Copy code
java.lang.AssertionError: AnnotationJar missing: $ProjectDir$/compiler/testData/mockJDK/jre/lib/annotations.jar does not exist
I could redirect the path it checks, but I don't actually know what this is.
d
Could you provide more of the stack trace?