score:1
Accepted answer
your crudcontroller
is expecting a subclass of service
with crudrepository
,
public abstract class crudcontroller<m extends model,
s extends service<m, crudrepository<m,long>>> { ..
but you are giving it a subclass of service
with subclass of crudrepository
.
you can change the crudcontroller signature ...
/* takes any crudrepository */
public abstract class crudcontroller<m extends model,
s extends service<m, ? extends crudrepository<m,long>>> { ..
or
/* takes any crudrepository */
public abstract class crudcontroller<m extends model,
r extends crudrepository<m, long>, s extends service<m,r>> { ..
/* you'll have to be explicit in usercontroller with this signature */
public class usercontroller extends crudcontroller<user, userrepository, userservice>{
Source: stackoverflow.com
Related Query
- Eclipse sees this code as error, but it compiles fine in maven
- This code datasource configurarion in tomme is running without eclipse fine but when i run in eclipse then its giving error
- how come Eclipse compiles this Java code but not Ant?
- Eclipse signals an error but the code compiles
- OpenCV C++ code runs fine in terminal but error in running from eclipse - Ubuntu 12.04
- Eclipse Java Editor highlights the error but code compiles
- Eclipse shows an error but gcc compiles fine
- array_map showing syntax error in eclipse , but code is working fine
- Maven Bintray distribution in Eclipse is not uploading jar files. Error code 401 (Unauthorized) but only for jar packaging?
- Java code working fine in Eclipse but jar file throwing error
- Why does this Java code generate an error in one Eclipse project but not the other?
- Eclipse returns error message "Java was started but returned exit code = 1"
- Python code works, but eclipse shows error - Syntax error while detecting tuple
- Gradle project in eclipse builds fine but java files show compilation error
- Code compiles in Eclipse but not javac: curried lambdas with functional subinterface. Which is correct?
- I'm trying to install eclipse egit but there's this error saying
- Maven compiler plugin configured with Java 7 but still compiles Java 8 code
- Java CRTP and Wildcards: Code compiles in Eclipse but not `javac`
- Code in IntelliJ IDEA marked with compiler error where it works fine in Eclipse
- My code compiles in Eclipse but I get a ClassNotFound at runtime how can I fix it?
- Java generics code compiles in eclipse but not in command line
- Eclipse compiles correctly but shows error in 'Problems' view
- M2E in Eclipse gives maven-compiler-plugin errors, but Maven installation is fine
- Python code get error in eclipse while it runs fine in terminal
- Eclipse can't resolve maven dependencies, but project compiles from command line
- Eclipse CDT not recognizing some GL functions, but compiles fine
- eclipse maven deploy war to nexus OSS Access denied Error code 401, Unauthorized
- Eclipse shows error on package but inside this package Eclipse doesn't show errors
- I'm trying to Run this program on eclipse but get this error in console
- Maven build shows compilation error but Eclipse doesn't
More Query from same tag
- No "JPA Project" in Eclipse file menu
- Why Does FDT Show A Java Heap Error While Packaging an Adobe AIR app for iOS (.IPA)
- How to make On Item Selected not automatically choose the first entry
- Is there a way to copy code from the Eclipse IDE without the rich-text formatting?
- Adding the networkx library to PyDev in eclipse
- How to create a python distribution package in Eclipse pyDev
- How to find problematic thread in Eclipse remote debugger?
- CounterClass cannot be resolved
- Error with Proguard when signed application
- Eclipse Footer?
- Running two projects (trunk & branch) at the same time in Eclipse
- Won't update the value
- Eclipse: How to prevent an entire rebuild of a project after changing classpath
- Maven surefire arguments when running JUnit test via eclipse
- Eclipse Custom Variable for Java Code Templates
- Eclipse not getting Launched showing error -The org.eclipse.m2e.logback.configuration bundle was activated before the state location was initialized
- How do I get MercurialEclipse and Bitbucket to talk to each other?
- Can't deploy GWT application on Tomcat 7 and Jboss 7
- How can I print the number of times a value appears in an array without the print statement repeating the same value?
- COMM_UP cannot be resolved to a variable
- Android Application project eclipse not working
- How to access "permissions" package in Apache Jena?
- Load Rdf file in streamer CSparql
- Eclipse: script compiler as part of a project
- Why a "right click->Run as" on any project name in eclipse does not gives normal options sometime?
- Android facebook crash
- Java Incompatible conditional operand types int and boolean
- Eclipse RCP - Programmatically setting a view to not be closeable
- ksoap2 in Android: noclassdeffounderror on SoapObject
- Refresh IContributorManager when underlying IAction contribution item gets updated