General upgrade to Jakarta EE 11 APIs
Includes removal of ManagedBean and javax.annotation legacy support. Includes AbstractJson(Http)MessageConverter revision for Yasson 3.0. Includes initial Hibernate ORM 7.0 upgrade. Closes gh-34011 Closes gh-33750
This commit is contained in:
@@ -21,7 +21,6 @@ import java.io.FileInputStream;
|
||||
import java.io.IOException;
|
||||
import java.nio.file.Path;
|
||||
|
||||
import jakarta.annotation.ManagedBean;
|
||||
import jakarta.inject.Named;
|
||||
import jakarta.persistence.Converter;
|
||||
import jakarta.persistence.Embeddable;
|
||||
@@ -43,7 +42,6 @@ import org.springframework.context.index.sample.SampleNonStaticEmbedded;
|
||||
import org.springframework.context.index.sample.SampleNone;
|
||||
import org.springframework.context.index.sample.SampleRepository;
|
||||
import org.springframework.context.index.sample.SampleService;
|
||||
import org.springframework.context.index.sample.cdi.SampleManagedBean;
|
||||
import org.springframework.context.index.sample.cdi.SampleNamed;
|
||||
import org.springframework.context.index.sample.cdi.SampleTransactional;
|
||||
import org.springframework.context.index.sample.jpa.SampleConverter;
|
||||
@@ -126,11 +124,6 @@ class CandidateComponentsIndexerTests {
|
||||
testComponent(AbstractController.class);
|
||||
}
|
||||
|
||||
@Test
|
||||
void cdiManagedBean() {
|
||||
testSingleComponent(SampleManagedBean.class, ManagedBean.class);
|
||||
}
|
||||
|
||||
@Test
|
||||
void cdiNamed() {
|
||||
testSingleComponent(SampleNamed.class, Named.class);
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
/*
|
||||
* Copyright 2002-2016 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.context.index.sample.cdi;
|
||||
|
||||
import jakarta.annotation.ManagedBean;
|
||||
|
||||
/**
|
||||
* Test candidate for a CDI {@link ManagedBean}.
|
||||
*
|
||||
* @author Stephane Nicoll
|
||||
*/
|
||||
@ManagedBean
|
||||
public class SampleManagedBean {
|
||||
}
|
||||
Reference in New Issue
Block a user