关于 BigDecimal 反射的 Quarkus 警告

Quarkus warning about reflection of BigDecimal

Quarkus 在启动期间显示此警告:

2020-05-07 10:24:21,302 WARN  [io.qua.dep.ste.ReflectiveHierarchyStep] (build-13) Unable to properly register the hierarchy of the following classes for reflection as they are not in the Jandex index:
    - java.math.BigDecimal

要重现,只需创建一个只有下面两个 类 的新 Quarkus 项目。

import java.math.BigDecimal;

public class Product {

    private int id;
    private BigDecimal price;

    public int getId () {
        return id;
    }

    public void setId (int id) {
        this.id = id;
    }

    public BigDecimal getPrice () {
        return price;
    }

    public void setPrice (BigDecimal price) {
        this.price = price;
    }
}

@Path("Products CRUD")
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
public class ProductsResource {

    @GET
    public Product get () {
        return new Product();
    }
}

该警告出现在 1.4 版本中。2.Final。在版本 1.4.1.Final 中没有。 Quarkus 是否改变了什么或者这是一个回归问题?

此特定版本的 Quarkus 存在问题。

https://github.com/quarkusio/quarkus/pull/9190 修复它。