You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Sergey Rymsha (Jira)" <ji...@apache.org> on 2022/08/25 14:51:00 UTC

[jira] [Updated] (FELIX-6562) Fail to start on Locale with non-Arabic numerals

     [ https://issues.apache.org/jira/browse/FELIX-6562?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sergey Rymsha updated FELIX-6562:
---------------------------------
    Description: 
{code:java}
org.apache.felix.framework.util.Util.initializeJPMSEE{code}
 

has code
{code:java}
properties.put("felix.detect.java.version", String.format("0.0.0.JavaSE_%03d", version.getMajor()));{code}
 

Which uses system Locale to format numbers. 

 

If default locale has non-Arabic numerals the resulting string becomes invalid and
{code:java}
IllegalArgumentException: invalid version "0.0.0.JavaSE_???": invalid qualifier "0.0.0.JavaSE_???"{code}
is thrown on Felix.init

  was:
{code:java}
org.apache.felix.framework.util.Util.initializeJPMSEE{code}
 

has code
{code:java}
properties.put("felix.detect.java.version", String.format("0.0.0.JavaSE_%03d", version.getMajor()));{code}
 

Which uses system Locale to format numbers. 

 

If default locale has non-Arabic numerals the resulting string becomes invalid and
{code:java}
IllegalArgumentException: invalid version "0.0.0.JavaSE_???": invalid qualifier "0.0.0.JavaSE_???"{code}
is thrown


> Fail to start on Locale with non-Arabic numerals
> ------------------------------------------------
>
>                 Key: FELIX-6562
>                 URL: https://issues.apache.org/jira/browse/FELIX-6562
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: framework-7.0.5
>         Environment: Windows
>            Reporter: Sergey Rymsha
>            Priority: Major
>
> {code:java}
> org.apache.felix.framework.util.Util.initializeJPMSEE{code}
>  
> has code
> {code:java}
> properties.put("felix.detect.java.version", String.format("0.0.0.JavaSE_%03d", version.getMajor()));{code}
>  
> Which uses system Locale to format numbers. 
>  
> If default locale has non-Arabic numerals the resulting string becomes invalid and
> {code:java}
> IllegalArgumentException: invalid version "0.0.0.JavaSE_???": invalid qualifier "0.0.0.JavaSE_???"{code}
> is thrown on Felix.init



--
This message was sent by Atlassian Jira
(v8.20.10#820010)