You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "russell gordon (JIRA)" <ji...@codehaus.org> on 2008/06/02 17:24:54 UTC
[jira] Created: (MCOMPILER-76) jdk 1.4 check doesn't catch
Integer.valueOf(int) which is java 5
jdk 1.4 check doesn't catch Integer.valueOf(int) which is java 5
-----------------------------------------------------------------
Key: MCOMPILER-76
URL: http://jira.codehaus.org/browse/MCOMPILER-76
Project: Maven 2.x Compiler Plugin
Issue Type: Bug
Affects Versions: 2.0.2
Environment: windows vista, jdk 1.5.10_12,
Reporter: russell gordon
Priority: Minor
When building with the following option in the pom :
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.4</source>
<target>1.4</target>
</configuration>
</plugin>
Using jdk 1.5.0_12. The check does not catch all java 5 code - specifically Integer.valueOf(int).
--
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
[jira] Closed: (MCOMPILER-76) jdk 1.4 check doesn't catch
Integer.valueOf(int) which is java 5
Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MCOMPILER-76?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Bentmann closed MCOMPILER-76.
--------------------------------------
Assignee: Benjamin Bentmann
Resolution: Not A Bug
The {{target}} option merely specifies the class file format used by the byte code, not the classes/methods invoked by it. What you are looking for is called cross-compilation. Please see:
- [Compiling Sources Using A Different JDK|http://maven.apache.org/plugins/maven-compiler-plugin/examples/compile-using-different-jdk.html]
- [javac, Cross-Compilation Options|http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/javac.html#crosscomp-options]
> jdk 1.4 check doesn't catch Integer.valueOf(int) which is java 5
> -----------------------------------------------------------------
>
> Key: MCOMPILER-76
> URL: http://jira.codehaus.org/browse/MCOMPILER-76
> Project: Maven 2.x Compiler Plugin
> Issue Type: Bug
> Affects Versions: 2.0.2
> Environment: windows vista, jdk 1.5.10_12,
> Reporter: russell gordon
> Assignee: Benjamin Bentmann
> Priority: Minor
>
> When building with the following option in the pom :
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-compiler-plugin</artifactId>
> <configuration>
> <source>1.4</source>
> <target>1.4</target>
> </configuration>
> </plugin>
> Using jdk 1.5.0_12. The check does not catch all java 5 code - specifically Integer.valueOf(int).
--
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