-
Bug
-
Resolution: Not an Issue
-
P3
-
None
-
8
-
linux_ubuntu
FULL PRODUCT VERSION :
java version "1.8.0-ea"
Java(TM) SE Runtime Environment (build 1.8.0-ea-b106)
Java HotSpot(TM) Server VM (build 25.0-b48, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Linux linux-desktop 2.6.32-50-generic #112-Ubuntu SMP Tue Jul 9 20:29:14 UTC 2013 i686 GNU/Linux
A DESCRIPTION OF THE PROBLEM :
Compilation fails in java8
Environment Ubuntu 10.04 LTS
1) java source
import org.springframework.jdbc.core.RowMapper;
public class GenericRowMapper implements RowMapper<Map<Integer, String>> {
...
2) in java7:
>sudo update-java-alternatives -s java-7-oracle
>mvn clean install -Dmaven.test.skip=true
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
3) in java8
>sudo update-java-alternatives -s java-8-oracle
>mvn clean install -Dmaven.test.skip=true
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Compiler errors :
error at public class GenericRowMapper implements RowMapper<Map<Integer, String>> {
^^^^^^^^
The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files
REGRESSION. Last worked in version 7u25
ERROR MESSAGES/STACK TRACES THAT OCCUR :
The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import org.springframework.jdbc.core.RowMapper;
public class GenericRowMapper implements RowMapper<Map<Integer, String>> {
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
revert to 1.7
java version "1.8.0-ea"
Java(TM) SE Runtime Environment (build 1.8.0-ea-b106)
Java HotSpot(TM) Server VM (build 25.0-b48, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Linux linux-desktop 2.6.32-50-generic #112-Ubuntu SMP Tue Jul 9 20:29:14 UTC 2013 i686 GNU/Linux
A DESCRIPTION OF THE PROBLEM :
Compilation fails in java8
Environment Ubuntu 10.04 LTS
1) java source
import org.springframework.jdbc.core.RowMapper;
public class GenericRowMapper implements RowMapper<Map<Integer, String>> {
...
2) in java7:
>sudo update-java-alternatives -s java-7-oracle
>mvn clean install -Dmaven.test.skip=true
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
3) in java8
>sudo update-java-alternatives -s java-8-oracle
>mvn clean install -Dmaven.test.skip=true
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Compiler errors :
error at public class GenericRowMapper implements RowMapper<Map<Integer, String>> {
^^^^^^^^
The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files
REGRESSION. Last worked in version 7u25
ERROR MESSAGES/STACK TRACES THAT OCCUR :
The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import org.springframework.jdbc.core.RowMapper;
public class GenericRowMapper implements RowMapper<Map<Integer, String>> {
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
revert to 1.7