Warnings in JExtract generated code

Christoph Läubrich laeubi at laeubi-soft.de
Mon Jun 3 05:07:06 UTC 2024


Hi Martin,

I have written some code-generators in the past and it is utterly more 
complex to generate "warning free" code, especially if one has to 
consider different settings, in this case e.g. Eclipse defaults (what 
might be configured differently) or javac or ....

I cam up with two possible approaches:

1) generate into a separate source folder and disable warnings for that 
folder

2) run bulk cleanup action after the generation (organize imports, ...)


Am 02.06.24 um 21:27 schrieb Martin Pernollet:
> Hi,
> 
> There are lot of unused imports in JExtract generated code leading to 
> lot of warnings.
> 
> That would be nice to get rid of them : PanamaGL has +100.000 warnings 
> in the bindings part :)
> 
> image.png
> 
> 
> image.png
> 
> Regards,
> 
> Martin


More information about the panama-dev mailing list