mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-30 21:08:30 +08:00
Add test for 2059
This commit is contained in:
parent
b40b4928f0
commit
13833657b7
@ -0,0 +1,29 @@
|
||||
package com.querydsl.apt.domain;
|
||||
|
||||
import static org.junit.Assert.assertNotNull;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import com.querydsl.core.annotations.QueryEntity;
|
||||
import com.querydsl.core.annotations.QuerySupertype;
|
||||
|
||||
public class GenericStackOverflowTest extends AbstractTest {
|
||||
|
||||
public interface Identifiable<ID extends Comparable<ID> & Serializable> {
|
||||
}
|
||||
|
||||
@QuerySupertype
|
||||
public abstract static class AbstractEntity<ID extends Comparable<ID> & Serializable> implements Identifiable<ID> {
|
||||
}
|
||||
|
||||
@QueryEntity
|
||||
public static class TestEntity extends AbstractEntity<Long> {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void test() {
|
||||
assertNotNull(QGenericStackOverflowTest_AbstractEntity.abstractEntity);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user