You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Ikuo YAMASAKI (JIRA)" <ji...@apache.org> on 2010/12/28 04:48:45 UTC

[jira] Created: (FELIX-2749) Boolean.parseBoolean() newly defined in Java5 should not be used.

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.6
         Environment: J2SE 1.4 with upcoming 3.0.7 release.

            Reporter: Ikuo YAMASAKI
            Priority: Minor


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.


[jira] Resolved: (FELIX-2749) Boolean.parseBoolean() newly defined in Java5 should not be used.

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-2749?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard S. Hall resolved FELIX-2749.
------------------------------------

    Resolution: Fixed

I have committed a patch that should fix this issue. Please review it by checking the SVN commit against this issue. Close this issue if satisfied. Thanks.

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


[jira] Updated: (FELIX-2749) Boolean.parseBoolean() newly defined in Java5 should not be used.

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-2749?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard S. Hall updated FELIX-2749:
-----------------------------------

    Fix Version/s:     (was: framework-3.2.0)
                   framework-3.0.8

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


[jira] Commented: (FELIX-2749) Boolean.parseBoolean() newly defined in Java5 should not be used.

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-2749?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12985795#action_12985795 ] 

Richard S. Hall commented on FELIX-2749:
----------------------------------------

We don't have set release dates, but I think I'll have to do a micro release for a performance issue for GlassFish before long, so I'll try to slip this fix into it.

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


[jira] Commented: (FELIX-2749) Boolean.parseBoolean() newly defined in Java5 should not be used.

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-2749?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12985350#action_12985350 ] 

Richard S. Hall commented on FELIX-2749:
----------------------------------------

There is no 3.1.0 release, since 3.1.0 is the development branch. If we do another 3.0.x release, then this will likely go into that. If not, then it goes into the next "big" release, which is 3.2.0.

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


[jira] Commented: (FELIX-2749) Boolean.parseBoolean() newly defined in Java5 should not be used.

Posted by "Ikuo YAMASAKI (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-2749?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12985449#action_12985449 ] 

Ikuo YAMASAKI commented on FELIX-2749:
--------------------------------------

Richard, thank you for the information.
It would be very appreciated you could tell me when the next  release (3.0.x or 3.2.0) will be done.

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


[jira] Commented: (FELIX-2749) Boolean.parseBoolean() newly defined in Java5 should not be used.

Posted by "Ikuo YAMASAKI (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-2749?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12981614#action_12981614 ] 

Ikuo YAMASAKI commented on FELIX-2749:
--------------------------------------

The patch seems fine for me.
Could you tell me why the expected release is 3.2.0 (not 3.1.0) and when it will be released ?

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


[jira] Commented: (FELIX-2749) Boolean.parseBoolean() newly defined in Java5 should not be used.

Posted by "luke w patterson (JIRA)" <ji...@apache.org>.
    [ 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.


[jira] Updated: (FELIX-2749) Boolean.parseBoolean() newly defined in Java5 should not be used.

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-2749?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard S. Hall updated FELIX-2749:
-----------------------------------

    Affects Version/s:     (was: framework-3.0.6)
                       framework-3.0.7
        Fix Version/s: framework-3.2.0
             Assignee: Richard S. Hall

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


[jira] Commented: (FELIX-2749) Boolean.parseBoolean() newly defined in Java5 should not be used.

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-2749?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12975570#action_12975570 ] 

Richard S. Hall commented on FELIX-2749:
----------------------------------------

Actually, we always wanted to just compile against the OSGi foundation profile API bundle, which would easily solve the issue too. However, the framework is a little more complicated than that, since we have to have access to some > Java 5 methods so we can deal with some issues that arise on newer platforms. So, the codebase is a mix, but we try to keep them in separate execution paths so we can avoid them when running on older JVMs. So, for us to actually use the OSGi foundation profile API bundle as our boot class path for compiling, we'd need to divide the framework into at least two modules, one only accessing < Java 5 and one accessing >= Java 5. This might be possible, but it might not be. We'd have to investigate.

Maybe the mentioned plugin can deal with such 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.


[jira] Commented: (FELIX-2749) Boolean.parseBoolean() newly defined in Java5 should not be used.

Posted by "luke w patterson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-2749?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12975590#action_12975590 ] 

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

Hmm, I see now how things are a little more complicated.

My guess is that you could still get some use out of the plugin.  (just a guess though, I'm just a casual observer)

If you found/created/used a signature file for "OSGi foundation profile API", and then explicitly marked the straying code with @IgnoreJRERequirement https://animal-sniffer.dev.java.net/signature-checker.html
that might be a step forward.  Not ideal, but a step forward.

"we try to keep them in separate execution paths so we can avoid them when running on older JVMs"

Hopefully you're not using the "LinkageError pattern" as described https://animal-sniffer.dev.java.net/signature-checker.html
, cause I've been burned by that when the JVM exercises it full rights to eager resolution.  I had to "opto-isolate" with a layer of pure reflection.  Just a thought, I haven't looked at the code to see how graceful fallback is handled.

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