You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexey Varlamov (JIRA)" <ji...@apache.org> on 2006/12/14 13:47:22 UTC

[jira] Assigned: (HARMONY-2470) [classlib][luni][test] Harmony unit test org.apache.harmony.luni.tests.java.lang.PackageTest.test#isCompatibleWithLjava_lang_String is incorect

     [ http://issues.apache.org/jira/browse/HARMONY-2470?page=all ]

Alexey Varlamov reassigned HARMONY-2470:
----------------------------------------

    Assignee: Alexey Varlamov

> [classlib][luni][test] Harmony unit test org.apache.harmony.luni.tests.java.lang.PackageTest.test#isCompatibleWithLjava_lang_String is incorect
> -----------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2470
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2470
>             Project: Harmony
>          Issue Type: Bug
>          Components: build - test - ci
>            Reporter: Artem Aliev
>         Assigned To: Alexey Varlamov
>
> According to J2SE API 5.0 specifications of java.lang.Package class:
> "Specification version numbers use a syntax that consists of positive decimal 
> integers separated by periods ".", for example "2.0" or "1.2.3.4.5.6.7". This 
> allows an extensible number to be used to represent major, minor, micro, etc. 
> versions. The version specification is described by the following formal 
> grammar: 
> SpecificationVersion: 
>     Digits RefinedVersionopt 
> RefinedVersion: 
>     . Digits 
>     . Digits RefinedVersion 
> Digits: 
>     Digit 
>     Digits 
> Digit: 
>     any character for which Character.isDigit(char) returns true, e.g. 0, 1, 
>     2, ... 
> "
> But the following Harmony unit test 
> org.apache.harmony.luni.tests.java.lang.PackageTest.test invokes
> Package.isCompatibleWith(String) with incorrect argument "2.1.9." to compare
> package's specification version with a desired version.
> See test case "test_isCompatibleWithLjava_lang_String".
> As the result this test case fails on RI and reports:
> test_isCompatibleWithLjava_lang_String(org.apache.harmony.luni.tests.java.lang.PackageTest)junit.framework.AssertionFailedError:
> Exception during isCompatibleWith test : For input string: ""
>         at
> org.apache.harmony.luni.tests.java.lang.PackageTest.test_isCompatibleWithLjava_lang_String(PackageTest.java:331)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira