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
mvn compile ends up in mapping error #31
Comments
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project onebusaway-gtfs: Compilation failure
Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation failure
|
Are you still seeing this error? What OS + JDK + version of Maven are you using? |
I am: Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100) |
Based on some Googling on the subject, it sounds like it might be a type-inference bug in OpenJDK6? https://bugs.openjdk.java.net/show_bug.cgi?id=100167 I'm guessing it won't be fixed since Java 6 is EOL. Any chance you'd consider upgrading to OpenJDK7 (where this has apparently been fixed)? If we can find some Java generics magic to get this compiling for you under OpenJDK6, I'm not opposed to changing the OBA code. That said, I don't really have a machine I can test this on. If you can play with it, I'd definitely accept a patch. |
If it is a Java 6 bug, I'll just close this ticket. |
i have the same question , can you help me how to solve it? |
duliu1990, Are you running Java 6? |
yes java jdk version 1.6.20 ------------------ 原始邮件 ------------------ duliu1990, Are you running Java 6? — |
Since this was a bug in the JDK, your best bet is to upgrade to the latest 1.6 (since you are many versions behind at this point) or, even better, upgrade to 1.7 (since 1.6 is end-of-lifed anyway). |
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project onebusaway-gtfs: Compilation failure
[ERROR] /home/skinkie/dev/onebusaway-gtfs-modules/onebusaway-gtfs/src/main/java/org/onebusaway/gtfs/impl/GtfsRelationalDaoImpl.java:[325,31] incompatible types; no instance(s) of type variable(s) C exist so that java.util.Map<K,C> conforms to java.util.Map<K,java.util.List>
[ERROR] found : java.util.Map<K,C>
[ERROR] required: java.util.Map<K,java.util.List>
[ERROR] -> [Help 1]
The text was updated successfully, but these errors were encountered: