Skip to content

DateTimeFormatAnnotationFormatterFactory calls String.isEmpty(), which exists only in JDK1.6+ [SPR-6529] #11195

Closed
@spring-projects-issues

Description

@spring-projects-issues

Marty Jones opened SPR-6529 and commented

This issue has already been raised (#11061) but was closed as a duplicate and was marked as fixed in RC3. I looked at the source and as you can see from this snippet that the isEmpty call is still there.

private DateTimeFormatter configureDateTimeFormatterFrom(DateTimeFormat annotation) {
	if (!annotation.pattern().isEmpty()) {
			return forPattern(annotation.pattern());
	}
	else if (annotation.iso() != ISO.NONE) {
		return forIso(annotation.iso());
	}
	else {
		return forStyle(annotation.style());
	}
}

Affects: 3.0 RC3

Referenced from: commits 231c833

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions