Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

imp: SourceVersion.RELEASE_17 #9805

Merged
merged 1 commit into from
Aug 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public Types getTypeUtils() {

@Override
public SourceVersion getSourceVersion() {
return SourceVersion.RELEASE_8;
return SourceVersion.RELEASE_17;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ abstract class AbstractInjectAnnotationProcessor extends AbstractProcessor {
public SourceVersion getSupportedSourceVersion() {
SourceVersion sourceVersion = SourceVersion.latest();
if (sourceVersion.ordinal() <= 20) {
if (sourceVersion.ordinal() >= 8) {
if (sourceVersion.ordinal() >= 17) {
return sourceVersion;
} else {
return SourceVersion.RELEASE_8;
return SourceVersion.RELEASE_17;
}
} else {
return (SourceVersion.values())[20];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
package io.micronaut.testsuitehelper;

import static javax.lang.model.SourceVersion.RELEASE_8;
import static javax.lang.model.SourceVersion.RELEASE_17;

import java.io.File;
import java.io.IOException;
Expand All @@ -34,7 +34,7 @@
* Annotation processor for test generation.
*/
@SupportedAnnotationTypes("*")
@SupportedSourceVersion(RELEASE_8)
@SupportedSourceVersion(RELEASE_17)
public class TestGeneratingAnnotationProcessor extends AbstractProcessor {

private boolean executed = false;
Expand Down