-
Notifications
You must be signed in to change notification settings - Fork 208
Open
Description
Version
5.0.5
Context
@RowMapped doesn't support byte. short, long, boolean, float, double works fine.
eclipse-vertx/vertx-codegen#405
Steps to reproduce
Try compile this:
import io.vertx.codegen.annotations.DataObject;
import io.vertx.codegen.format.SnakeCase;
import io.vertx.sqlclient.templates.annotations.ParametersMapped;
import io.vertx.sqlclient.templates.annotations.RowMapped;
import lombok.Data;
@Data
@DataObject
@RowMapped(formatter = SnakeCase.class)
@ParametersMapped(formatter = SnakeCase.class)
public class TestClass {
private byte num;
}You will get sth like that:
$ ./gradlew DragonBackups:jar
> Task :DragonBackups:annotationProcessing
Note: Loaded data_object_mappers code generator
Note: Loaded data_object_mappers code generator
Note: Loaded data_object_converters code generator
warning: Supported source version 'RELEASE_11' from annotation processor 'org.gradle.api.internal.tasks.compile.processing.TimeTrackingProcessor' less than -source '21'
Note: Generated model ovh.adiantek.bukkit.dragonbackups.db.TestClass: ovh.adiantek.bukkit.dragonbackups.db.TestClassParametersMapper
Note: Generated model ovh.adiantek.bukkit.dragonbackups.db.TestClass: ovh.adiantek.bukkit.dragonbackups.db.TestClassRowMapper
1 warning
> Task :DragonBackups:compileJava FAILED
Note: Loaded data_object_converters code generator
warning: Supported source version 'RELEASE_11' from annotation processor 'org.gradle.api.internal.tasks.compile.processing.TimeTrackingProcessor' less than -source '21'
/home/ubuntu/git/DragonPlugins/DragonBackups/build/generated/main/java/ovh/adiantek/bukkit/dragonbackups/db/TestClassRowMapper.java:20: error: cannot find symbol
if ((idx = row.getColumnIndex("num")) != -1 && (val = row.getByte(idx)) != null) {
^
symbol: method getByte(int)
location: variable row of type Row
1 error
[Incubating] Problems report is available at: file:///home/ubuntu/git/DragonPlugins/build/reports/problems/problems-report.html
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':DragonBackups:compileJava'.
> Compilation failed; see the compiler output below.
warning: Supported source version 'RELEASE_11' from annotation processor 'org.gradle.api.internal.tasks.compile.processing.TimeTrackingProcessor' less than -source '21'
Note: Recompile with -Xlint:deprecation for details.
Note: Loaded data_object_converters code generator
/home/ubuntu/git/DragonPlugins/DragonBackups/build/generated/main/java/ovh/adiantek/bukkit/dragonbackups/db/TestClassRowMapper.java:20: error: cannot find symbol
if ((idx = row.getColumnIndex("num")) != -1 && (val = row.getByte(idx)) != null) {
^
symbol: method getByte(int)
location: variable row of type Row
1 error
* Try:
> Check your code and dependencies to fix the compilation error(s)
> Run with --scan to get full insights.
BUILD FAILED in 2s
17 actionable tasks: 2 executed, 15 up-to-date
Do you have a reproducer?
No response