-
-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to compile .jar files with Ikvm8.7 & .net-core7 #438
Comments
Use IKVM.Maven.SDK. Otherwise, you will need to include, in IkvmReference.References, the full reference hierarchy, so that IKVM can build them in the proper order, depending on each other. |
@wasabii I do use it, please check the CalciteIKVM.zip
|
Wait..... So everythign EXCEPT that one line works? You got the wrong package name, dude. RelTraitDef lives under org.apache.calcite.plan |
@wasabii the calcite.plan is part of the Calcite Core jar. The issue we are seeing is Are there any knobs or logging levels that can be enabled to track down why this class is not being generated when we try to pull it into .NET? |
I added a using statement to your sample project, referencing the right namespace, and it worked. |
That's interesting, for me defining the namespace or using the fully qualified class name ( I'm using This is wha I see in my local project for reference. |
Wait a sec. The file I received from you had RelTraitRef used in Class1. And that was in the plan namespace. Changed it to Set, and it now fails. I see what's going on. During compilation, a number of errors are emitted:
This is an error parsing the RelTraitSet.class file. And I've traced it down to an actual bug. I'm pretty sure this bug isn't new to 8.7.0. Where it should have read a single byte, it was reading two bytes. As defined by the spec: https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.7.20; the size of type_argument_index is 1 byte. However, the IKVM.ByteCode parsing code was attempting to read two bytes (a short). This will require a hotfix. Which I'll get out in a couple hours. |
Apologizes for the confusion! Thank you so much for looking into this and for the quick response!! |
@wasabii which version in nuget should be with the hotfix? |
https://github.com/ikvmnet/ikvm/pkgs/nuget/IKVM/142804693 In GitHub nuget repo. I haven't run it through any manual tests yet. |
Confirmed, it does solve the issue with RelTraitSet. |
Thank you so much you are awesome! Just bring to your knowledge: After you full release this package I believe it would be fixed. |
@wasabii I'm sorry I am disturbing you After adding this:
Error: |
Definately a new issue. Moving to ikvm-maven. |
When I compile the code with apache.calcite.core.jar
Attaching two example project one is with java that is allowing to use calcite.core objects and .net which doesn't
CalciteIKVM.zip
CalciteTest.zip
Another way that I've tryed to use the library:
`
This way if I compare to two assemblies
![image](https://private-user-images.githubusercontent.com/6758579/279132438-ad2e2777-08d3-452a-b07e-660ffa17be4a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNDExNTYsIm5iZiI6MTczOTI0MDg1NiwicGF0aCI6Ii82NzU4NTc5LzI3OTEzMjQzOC1hZDJlMjc3Ny0wOGQzLTQ1MmEtYjA3ZS02NjBmZmExN2JlNGEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTFUMDIyNzM2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZDg4MGM4ZTMyNWQzYjFiOTQ5YjE3Y2YxM2M4Mjc3YWNmYzA5M2UxN2VlNjZlMjQxOTc2NDI2MWY4ZmEwNjFiNyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.SK2NAeisTyWw-cvJxsOop2Tebo4cPv6NneYMtbmgrls)
Old:
![image](https://private-user-images.githubusercontent.com/6758579/279132550-0b8995cb-76fa-415d-817d-6c1f24151993.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNDExNTYsIm5iZiI6MTczOTI0MDg1NiwicGF0aCI6Ii82NzU4NTc5LzI3OTE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WRlNGNiNTM1NjI0ZWFjNzA2M2QwNWQ5NWUzOGM1ZDJjZiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.oDDoE0D3tzUKviGY50u1ZdIexYs65aX_pMmSYsLkBYg)
New:
The only difference is old and new IKVM.net
For some reason the resources are compiled different too:
![image](https://private-user-images.githubusercontent.com/6758579/279133658-a57682b5-47b8-47e6-96e7-eb7aa6614e77.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNDExNTYsIm5iZiI6MTczOTI0MDg1NiwicGF0aCI6Ii82NzU4NTc5LzI3OTEzMzY1OC1hNTc2ODJiNS00N2I4LTQ3ZTYtOTZlNy1lYjdhYTY2MTRlNzcucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTFUMDIyNzM2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9N2YyOTI5NWQ0N2Q4N2NiMjFmNzZjYzg1N2JiNWI3MDFmYmJhNDhhMzdiZGFjOTlkM2MwNWIyMjkyOGIzM2IyZCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.gqZIAZ_VBbF0fuhugKEx4MNBYgaUho7WzZldSZucRVM)
![image](https://private-user-images.githubusercontent.com/6758579/279133780-4a69a857-de7b-44cc-b61b-ac3a0fe6ffbc.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNDExNTYsIm5iZiI6MTczOTI0MDg1NiwicGF0aCI6Ii82NzU4NTc5LzI3OTEzMzc4MC00YTY5YTg1Ny1kZTdiLTQ0Y2MtYjYxYi1hYzNhMGZlNmZmYmMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTFUMDIyNzM2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NDI1NDNjMmQ2Njc2ODQxY2YxNTRjMTMzZTE4MzJhZjhlNzkxOWRjOGYwMTVmMDhjYzRiNjRiZDQ1MDQ4YTdmNyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.deoU-MhvelHaWsOTopXzyWioYJbryXY2b8KUEpSXrDw)
Old:
New:
Can you please check if it's possible that I made a mistake in configuration? Can you please assist?
The text was updated successfully, but these errors were encountered: