Closed TypeSafeSchwalbe closed 1 month ago
No, you are wrong. TeaVM automatically implements record methods. Which version are you using?
oh wait yeah I just realized I am using 0.7 and that it may be because of that since I know got
Class java.lang.Record was not found
at typesafeschwalbe.gerac.compiler.frontend.Namespace.<init>(Namespace.java:6)
at typesafeschwalbe.gerac.compiler.Compiler.compile(Compiler.java:67)
at typesafeschwalbe.gerac.web.WebCompiler.main(WebCompiler.java:17)
welp let me update and check again
Yup simply updating to 0.10 works now. That's almost embarrassing :/ Thanks a lot again!
I have been trying to get some Java code involving records to compile with TeaVM, specifically my compiler written in Java. Internally it uses records, such as for example the
Namespace
record (which looks like this):Trying to compile this with TeaVM gives me the following two errors related to
Namespace
specifically (I am going to assume one has to actually useNamespace.equals
andNamespace.hashCode
to get the same or a similar error:So then I tried implementing the methods myself like this:
Which made those two specific errors go away. I am going to assume this is simply TeaVM not automatically generating implementations of these? All errors I am getting are similar to these, so I will probably just implement all of them manually for now and see how that goes. Decided that I should probably leave it as an issue here anyway. Thanks again for making and maintaining TeaVM btw