[
http://jira.codehaus.org/browse/MGWT-156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=208240#action_208240
]
Matt Bishop commented on MGWT-156:
----------------------------------
Wait, there's even more in the log file:
----------
7. ERROR in
/Users/mbishop/Projects/boco2/trunk/profile/src/main/gwt/com/sap/boco2/server/services/LocaleFactory.java
(at line 68)
for (Locale l : HttpAcceptLanguageHeader.getAllLocales(acceptLang)) {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Syntax error, 'for each' statements are only available if source level is 1.5
----------
Plus 68 others. My pom sets the source level to 1.5 like this:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<encoding>UTF-8</encoding>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
> JSP pages compile with JDK 1.4, not 1.5
> ---------------------------------------
>
> Key: MGWT-156
> URL: http://jira.codehaus.org/browse/MGWT-156
> Project: Maven 2.x GWT Plugin
> Issue Type: Bug
> Affects Versions: 1.2
> Environment: Mac OS X 10.6.2, JDK 1.6.0_17, GWT 1.7.1
> Reporter: Matt Bishop
>
> Our project uses an index.jsp to load the GWT application. The GWT app uses
> JDK 1.5 features like enums and generics. When running (gwt:run) with
> gwt-maven-plugin 1.2, jetty seems to think the source is 1.4 and will fail to
> compile classes with java5 syntax.
> REGRESSION! This worked as expected with plugin 1.1; if I merely change the
> plugin version from 1.2 to 1.1, the app works as expected.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email