Skip to content

使用java25,编译之后代码生成不全 #3

@Fengxq2014

Description

@Fengxq2014

java record:

@WithDefaults(named = true)
    public record OnlineAndAlarmResp(String content, String time, String online) {
    }

Generated:

/**
 * Default parameter helpers for {@link OnlineAndAlarmResp}.
 * <p>Generated by default4j annotation processor.
 */
@Generated("io.github.reugn.default4j.processor.DefaultValueProcessor")
public final class OnlineAndAlarmRespDefaults {
  private OnlineAndAlarmRespDefaults() {
    throw new UnsupportedOperationException("Utility class");
  }
}

同时编译有告警[WARNING] Supported source version 'RELEASE_17' from annotation processor 'io.github.reugn.default4j.processor.DefaultValueProcessor' less than -source '25'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions