micronaut-projects / micronaut-sourcegen

Compilation time source code generators
Apache License 2.0
7 stars 4 forks source link

Byte code generator #167

Open dstepanov opened 1 week ago

dstepanov commented 1 week ago

Added a way to generate the bytecode directly; currently, if added, it will generate bytecode instead of JAVA sources.

I have added the bytecode checker by default to find bugs directly; it might be an optional feature in the future.

I have copied existing tests for Java generator. The missing features:

Includes a lot of expression improvement and cleanup. Builders adjusted to invoke methods based on the original signature if generic.

I will experiment next in Core to see what is missing / not working.

sonarcloud[bot] commented 1 week ago

Quality Gate Failed Quality Gate failed

Failed conditions
1 Security Hotspot
0.0% Coverage on New Code (required ≥ 70%)
5 New Bugs (required ≤ 0)
3 New Blocker Issues (required ≤ 0)
17 New Critical Issues (required ≤ 0)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint