maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Bentmann (JIRA)" <j...@codehaus.org>
Subject [jira] Closed: (MNG-4512) [regression] Profile activation based on JDK version range fails if current version is close to range boundary
Date Sat, 02 Jan 2010 12:54:55 GMT

     [ http://jira.codehaus.org/browse/MNG-4512?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Benjamin Bentmann closed MNG-4512.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 3.0-alpha-6
         Assignee: Benjamin Bentmann

Fixed in [r895185|http://svn.apache.org/viewvc?view=revision&revision=895185].

> [regression] Profile activation based on JDK version range fails if current version is
close to range boundary
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: MNG-4512
>                 URL: http://jira.codehaus.org/browse/MNG-4512
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Profiles
>    Affects Versions: 3.0-alpha-5
>            Reporter: Benjamin Bentmann
>            Assignee: Benjamin Bentmann
>             Fix For: 3.0-alpha-6
>
>
> The POM snippet
> {code:xml}
> <profiles>
>   <profile>
>     <id>test</id>
>     <activation>
>       <jdk>[1.5,1.6)</jdk>
>     </activation>
>   </profile>
> </profiles>
> {code}
> yields
> {noformat}
> [ERROR]   The project org.apache.maven.its.mng:test:0.1 has 1 error
> [ERROR]     Failed to determine activation for profile test: For input string: "0_07"
> java.lang.NumberFormatException: For input string: "0_07"
>         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
>         at java.lang.Integer.parseInt(Integer.java:456)
>         at java.lang.Integer.parseInt(Integer.java:497)
>         at o.a.m.model.profile.activation.JdkVersionProfileActivator.getRelationOrder(JdkVersionProfileActivator.java:124)
>         at o.a.m.model.profile.activation.JdkVersionProfileActivator.isInRange(JdkVersionProfileActivator.java:96)
>         at o.a.m.model.profile.activation.JdkVersionProfileActivator.isActive(JdkVersionProfileActivator.java:70)
> {noformat}
> when run with JDK 1.6.0_07 in this case. 

-- 
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

        

Mime
View raw message