felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "luke w patterson (JIRA)" <j...@apache.org>
Subject [jira] Commented: (FELIX-2749) Boolean.parseBoolean() newly defined in Java5 should not be used.
Date Tue, 28 Dec 2010 17:28:45 GMT

    [ https://issues.apache.org/jira/browse/FELIX-2749?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12975567#action_12975567
] 

luke w patterson commented on FELIX-2749:
-----------------------------------------

no use of animal-sniffer http://mojo.codehaus.org/animal-sniffer-maven-plugin ?

would be easier to catch these type of issues

> Boolean.parseBoolean() newly defined in Java5 should not be used.
> -----------------------------------------------------------------
>
>                 Key: FELIX-2749
>                 URL: https://issues.apache.org/jira/browse/FELIX-2749
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: framework-3.0.7
>         Environment: J2SE 1.4 with upcoming 3.0.7 release.
>            Reporter: Ikuo YAMASAKI
>            Assignee: Richard S. Hall
>            Priority: Minor
>             Fix For: framework-3.2.0
>
>
> For 3.0.7 release, the framework cannot run on J2SE 1.4 or CDC FP1.1 because Boolean.parseBoolean()
is used.
> ---
> Exception in thread "main" java.lang.NoSuchMethodError: java.lang.Boolean.parseBoolean(Ljava/lang/String;)Z
>         at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:113)
>         at org.apache.felix.framework.Felix.init(Felix.java:593)
>         at org.apache.felix.main.Main.main(Main.java:288)
> ---
> Those methods newly defined in Java 5 should not be used.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message