[
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