OFBiz does not build when using OpenJDK 7
----------------------------------------- Key: OFBIZ-4638 URL: https://issues.apache.org/jira/browse/OFBIZ-4638 Project: OFBiz Issue Type: Bug Components: ALL APPLICATIONS Affects Versions: SVN trunk Environment: Ubuntu 11.10 $ java -version java version "1.7.0_147-icedtea" OpenJDK Runtime Environment (IcedTea7 2.0) (7~b147-2.0-0ubuntu0.11.10.1) OpenJDK 64-Bit Server VM (build 21.0-b17, mixed mode) Reporter: Sam Hamilton Priority: Critical OFBiz does not build when using OpenJDK 7. The log with the error is attached. Thanks Sam -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira |
[ https://issues.apache.org/jira/browse/OFBIZ-4638?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sam Hamilton updated OFBIZ-4638: -------------------------------- Attachment: OpenJDK 7 Error.txt > OFBiz does not build when using OpenJDK 7 > ----------------------------------------- > > Key: OFBIZ-4638 > URL: https://issues.apache.org/jira/browse/OFBIZ-4638 > Project: OFBiz > Issue Type: Bug > Components: ALL APPLICATIONS > Affects Versions: SVN trunk > Environment: Ubuntu 11.10 > $ java -version > java version "1.7.0_147-icedtea" > OpenJDK Runtime Environment (IcedTea7 2.0) (7~b147-2.0-0ubuntu0.11.10.1) > OpenJDK 64-Bit Server VM (build 21.0-b17, mixed mode) > Reporter: Sam Hamilton > Priority: Critical > Attachments: OpenJDK 7 Error.txt > > > OFBiz does not build when using OpenJDK 7. > The log with the error is attached. > Thanks > Sam -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4638?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chatree Srichart updated OFBIZ-4638: ------------------------------------ Attachment: java7.patch I attach a patch file to solve the problem. The problem is OpenJDK 7 and also Oracle JDK 7 do not cast nested Map's value to the defined generic type correctly. > OFBiz does not build when using OpenJDK 7 > ----------------------------------------- > > Key: OFBIZ-4638 > URL: https://issues.apache.org/jira/browse/OFBIZ-4638 > Project: OFBiz > Issue Type: Bug > Components: ALL APPLICATIONS > Affects Versions: SVN trunk > Environment: Ubuntu 11.10 > $ java -version > java version "1.7.0_147-icedtea" > OpenJDK Runtime Environment (IcedTea7 2.0) (7~b147-2.0-0ubuntu0.11.10.1) > OpenJDK 64-Bit Server VM (build 21.0-b17, mixed mode) > Reporter: Sam Hamilton > Priority: Critical > Attachments: OpenJDK 7 Error.txt, java7.patch > > > OFBiz does not build when using OpenJDK 7. > The log with the error is attached. > Thanks > Sam -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira |
comments or enhancements, very welcome!
On 01/04/2012 05:03 PM, Chatree Srichart (Updated) (JIRA) wrote: > [ https://issues.apache.org/jira/browse/OFBIZ-4638?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] > > Chatree Srichart updated OFBIZ-4638: > ------------------------------------ > > Attachment: java7.patch > > I attach a patch file to solve the problem. The problem is OpenJDK 7 and also Oracle JDK 7 do not cast nested Map's value to the defined generic type correctly. > >> OFBiz does not build when using OpenJDK 7 >> ----------------------------------------- >> >> Key: OFBIZ-4638 >> URL: https://issues.apache.org/jira/browse/OFBIZ-4638 >> Project: OFBiz >> Issue Type: Bug >> Components: ALL APPLICATIONS >> Affects Versions: SVN trunk >> Environment: Ubuntu 11.10 >> $ java -version >> java version "1.7.0_147-icedtea" >> OpenJDK Runtime Environment (IcedTea7 2.0) (7~b147-2.0-0ubuntu0.11.10.1) >> OpenJDK 64-Bit Server VM (build 21.0-b17, mixed mode) >> Reporter: Sam Hamilton >> Priority: Critical >> Attachments: OpenJDK 7 Error.txt, java7.patch >> >> >> OFBiz does not build when using OpenJDK 7. >> The log with the error is attached. >> Thanks >> Sam > -- > This message is automatically generated by JIRA. > If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa > For more information on JIRA, see: http://www.atlassian.com/software/jira > > |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13179389#comment-13179389 ] Hans Bakker commented on OFBIZ-4638: ------------------------------------ comments or enhancements, very welcome! > OFBiz does not build when using OpenJDK 7 > ----------------------------------------- > > Key: OFBIZ-4638 > URL: https://issues.apache.org/jira/browse/OFBIZ-4638 > Project: OFBiz > Issue Type: Bug > Components: ALL APPLICATIONS > Affects Versions: SVN trunk > Environment: Ubuntu 11.10 > $ java -version > java version "1.7.0_147-icedtea" > OpenJDK Runtime Environment (IcedTea7 2.0) (7~b147-2.0-0ubuntu0.11.10.1) > OpenJDK 64-Bit Server VM (build 21.0-b17, mixed mode) > Reporter: Sam Hamilton > Priority: Critical > Attachments: OpenJDK 7 Error.txt, java7.patch > > > OFBiz does not build when using OpenJDK 7. > The log with the error is attached. > Thanks > Sam -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13189594#comment-13189594 ] Hans Bakker commented on OFBIZ-4638: ------------------------------------ Because of the rather large impact this patch could have, I would appreciate if our Java experts in the community could approve this patch? This patch will enable openJDK 6,7 while the sun JDK 6,7 also should work. Thanks you for your help in advance.... Regards, Hans > OFBiz does not build when using OpenJDK 7 > ----------------------------------------- > > Key: OFBIZ-4638 > URL: https://issues.apache.org/jira/browse/OFBIZ-4638 > Project: OFBiz > Issue Type: Bug > Components: ALL APPLICATIONS > Affects Versions: SVN trunk > Environment: Ubuntu 11.10 > $ java -version > java version "1.7.0_147-icedtea" > OpenJDK Runtime Environment (IcedTea7 2.0) (7~b147-2.0-0ubuntu0.11.10.1) > OpenJDK 64-Bit Server VM (build 21.0-b17, mixed mode) > Reporter: Sam Hamilton > Priority: Critical > Attachments: OpenJDK 7 Error.txt, java7.patch > > > OFBiz does not build when using OpenJDK 7. > The log with the error is attached. > Thanks > Sam -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13189728#comment-13189728 ] Adrian Crum commented on OFBIZ-4638: ------------------------------------ If UtilMisc.<String, String>toMap compiles in OFBizSecurity.java, then why not use it in CommonServices.java also? > OFBiz does not build when using OpenJDK 7 > ----------------------------------------- > > Key: OFBIZ-4638 > URL: https://issues.apache.org/jira/browse/OFBIZ-4638 > Project: OFBiz > Issue Type: Bug > Components: ALL APPLICATIONS > Affects Versions: SVN trunk > Environment: Ubuntu 11.10 > $ java -version > java version "1.7.0_147-icedtea" > OpenJDK Runtime Environment (IcedTea7 2.0) (7~b147-2.0-0ubuntu0.11.10.1) > OpenJDK 64-Bit Server VM (build 21.0-b17, mixed mode) > Reporter: Sam Hamilton > Priority: Critical > Attachments: OpenJDK 7 Error.txt, java7.patch > > > OFBiz does not build when using OpenJDK 7. > The log with the error is attached. > Thanks > Sam -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13190688#comment-13190688 ] Jacques Le Roux commented on OFBIZ-4638: ---------------------------------------- Adrian, Because noteDate is a Timestamp and not a String? Same than userLogin being a GenericValue and not a String in WorldPayEvents.java. BTW I wonder why/how both compile in Sun jdk 6. But also why the change in OFBizSecurity.java is only needed there (and not elsewhere: there are tons of other cases) Did I miss anything? > OFBiz does not build when using OpenJDK 7 > ----------------------------------------- > > Key: OFBIZ-4638 > URL: https://issues.apache.org/jira/browse/OFBIZ-4638 > Project: OFBiz > Issue Type: Bug > Components: ALL APPLICATIONS > Affects Versions: SVN trunk > Environment: Ubuntu 11.10 > $ java -version > java version "1.7.0_147-icedtea" > OpenJDK Runtime Environment (IcedTea7 2.0) (7~b147-2.0-0ubuntu0.11.10.1) > OpenJDK 64-Bit Server VM (build 21.0-b17, mixed mode) > Reporter: Sam Hamilton > Priority: Critical > Attachments: OpenJDK 7 Error.txt, java7.patch > > > OFBiz does not build when using OpenJDK 7. > The log with the error is attached. > Thanks > Sam -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13219827#comment-13219827 ] Hans Bakker commented on OFBIZ-4638: ------------------------------------ anybody any objections committing this patch? > OFBiz does not build when using OpenJDK 7 > ----------------------------------------- > > Key: OFBIZ-4638 > URL: https://issues.apache.org/jira/browse/OFBIZ-4638 > Project: OFBiz > Issue Type: Bug > Components: ALL APPLICATIONS > Affects Versions: SVN trunk > Environment: Ubuntu 11.10 > $ java -version > java version "1.7.0_147-icedtea" > OpenJDK Runtime Environment (IcedTea7 2.0) (7~b147-2.0-0ubuntu0.11.10.1) > OpenJDK 64-Bit Server VM (build 21.0-b17, mixed mode) > Reporter: Sam Hamilton > Priority: Critical > Attachments: OpenJDK 7 Error.txt, java7.patch > > > OFBiz does not build when using OpenJDK 7. > The log with the error is attached. > Thanks > Sam -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13219836#comment-13219836 ] Anne Jessel commented on OFBIZ-4638: ------------------------------------ I don't have the right compilers to test this, but my editor says both the original and the patched versions of CommonServices and WorldPayEvents are incorrect. It says the fix is the same as for OFBizSecurity, namely to change UtilMisc.toMap(...) to be similar to UtilMisc.<String,String>toMap(...). > OFBiz does not build when using OpenJDK 7 > ----------------------------------------- > > Key: OFBIZ-4638 > URL: https://issues.apache.org/jira/browse/OFBIZ-4638 > Project: OFBiz > Issue Type: Bug > Components: ALL APPLICATIONS > Affects Versions: SVN trunk > Environment: Ubuntu 11.10 > $ java -version > java version "1.7.0_147-icedtea" > OpenJDK Runtime Environment (IcedTea7 2.0) (7~b147-2.0-0ubuntu0.11.10.1) > OpenJDK 64-Bit Server VM (build 21.0-b17, mixed mode) > Reporter: Sam Hamilton > Priority: Critical > Attachments: OpenJDK 7 Error.txt, java7.patch > > > OFBiz does not build when using OpenJDK 7. > The log with the error is attached. > Thanks > Sam -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13226336#comment-13226336 ] Mark commented on OFBIZ-4638: ----------------------------- Oracle JDK 7 update 3 shows exactly the same behaviour as OpenJDK 7. I would be very strange if core language components are different in OpenJDK and Oracle JDK. My best guess is that jdk 6 fails to recognize this as an error and therefore is a bug in jdk6...? > OFBiz does not build when using OpenJDK 7 > ----------------------------------------- > > Key: OFBIZ-4638 > URL: https://issues.apache.org/jira/browse/OFBIZ-4638 > Project: OFBiz > Issue Type: Bug > Components: ALL APPLICATIONS > Affects Versions: SVN trunk > Environment: Ubuntu 11.10 > $ java -version > java version "1.7.0_147-icedtea" > OpenJDK Runtime Environment (IcedTea7 2.0) (7~b147-2.0-0ubuntu0.11.10.1) > OpenJDK 64-Bit Server VM (build 21.0-b17, mixed mode) > Reporter: Sam Hamilton > Priority: Critical > Attachments: OpenJDK 7 Error.txt, java7.patch > > > OFBiz does not build when using OpenJDK 7. > The log with the error is attached. > Thanks > Sam -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13226336#comment-13226336 ] Mark edited comment on OFBIZ-4638 at 3/9/12 7:12 PM: ----------------------------------------------------- Oracle JDK 7 update 3 shows exactly the same behaviour as OpenJDK 7. It would seem to me a bit strange if core language components are different in OpenJDK and Oracle JDK. My best guess is that jdk 6 fails to recognize this as an error and therefore is a bug in jdk6...? was (Author: rnfm7avr): Oracle JDK 7 update 3 shows exactly the same behaviour as OpenJDK 7. I would be very strange if core language components are different in OpenJDK and Oracle JDK. My best guess is that jdk 6 fails to recognize this as an error and therefore is a bug in jdk6...? > OFBiz does not build when using OpenJDK 7 > ----------------------------------------- > > Key: OFBIZ-4638 > URL: https://issues.apache.org/jira/browse/OFBIZ-4638 > Project: OFBiz > Issue Type: Bug > Components: ALL APPLICATIONS > Affects Versions: SVN trunk > Environment: Ubuntu 11.10 > $ java -version > java version "1.7.0_147-icedtea" > OpenJDK Runtime Environment (IcedTea7 2.0) (7~b147-2.0-0ubuntu0.11.10.1) > OpenJDK 64-Bit Server VM (build 21.0-b17, mixed mode) > Reporter: Sam Hamilton > Priority: Critical > Attachments: OpenJDK 7 Error.txt, java7.patch > > > OFBiz does not build when using OpenJDK 7. > The log with the error is attached. > Thanks > Sam -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13226383#comment-13226383 ] Mark commented on OFBIZ-4638: ----------------------------- http://bugs.sun.com/view_bug.do?bug_id=6638712 Fixed in openjdk 6+7 and Oracle JDK7, but obviously not in Oracle JDK 6. > OFBiz does not build when using OpenJDK 7 > ----------------------------------------- > > Key: OFBIZ-4638 > URL: https://issues.apache.org/jira/browse/OFBIZ-4638 > Project: OFBiz > Issue Type: Bug > Components: ALL APPLICATIONS > Affects Versions: SVN trunk > Environment: Ubuntu 11.10 > $ java -version > java version "1.7.0_147-icedtea" > OpenJDK Runtime Environment (IcedTea7 2.0) (7~b147-2.0-0ubuntu0.11.10.1) > OpenJDK 64-Bit Server VM (build 21.0-b17, mixed mode) > Reporter: Sam Hamilton > Priority: Critical > Attachments: OpenJDK 7 Error.txt, java7.patch > > > OFBiz does not build when using OpenJDK 7. > The log with the error is attached. > Thanks > Sam -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13226405#comment-13226405 ] Jacques Le Roux commented on OFBIZ-4638: ---------------------------------------- Thanks for report Mark, Maybe a reason to begin to turn to Java 7... > OFBiz does not build when using OpenJDK 7 > ----------------------------------------- > > Key: OFBIZ-4638 > URL: https://issues.apache.org/jira/browse/OFBIZ-4638 > Project: OFBiz > Issue Type: Bug > Components: ALL APPLICATIONS > Affects Versions: SVN trunk > Environment: Ubuntu 11.10 > $ java -version > java version "1.7.0_147-icedtea" > OpenJDK Runtime Environment (IcedTea7 2.0) (7~b147-2.0-0ubuntu0.11.10.1) > OpenJDK 64-Bit Server VM (build 21.0-b17, mixed mode) > Reporter: Sam Hamilton > Priority: Critical > Attachments: OpenJDK 7 Error.txt, java7.patch > > > OFBiz does not build when using OpenJDK 7. > The log with the error is attached. > Thanks > Sam -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4638?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Hans Bakker closed OFBIZ-4638. ------------------------------ Resolution: Fixed Fix Version/s: SVN trunk Assignee: Hans Bakker committed revision 1299985 Thank you Chattree for the contribution. > OFBiz does not build when using OpenJDK 7 > ----------------------------------------- > > Key: OFBIZ-4638 > URL: https://issues.apache.org/jira/browse/OFBIZ-4638 > Project: OFBiz > Issue Type: Bug > Components: ALL APPLICATIONS > Affects Versions: SVN trunk > Environment: Ubuntu 11.10 > $ java -version > java version "1.7.0_147-icedtea" > OpenJDK Runtime Environment (IcedTea7 2.0) (7~b147-2.0-0ubuntu0.11.10.1) > OpenJDK 64-Bit Server VM (build 21.0-b17, mixed mode) > Reporter: Sam Hamilton > Assignee: Hans Bakker > Priority: Critical > Fix For: SVN trunk > > Attachments: OpenJDK 7 Error.txt, java7.patch > > > OFBiz does not build when using OpenJDK 7. > The log with the error is attached. > Thanks > Sam -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira |
Free forum by Nabble | Edit this page |