You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Woonsan Ko (JIRA)" <ji...@apache.org> on 2007/02/22 05:28:02 UTC
[jira] Created: (AMQ-1167) The example does not work under JVM 1.4
The example does not work under JVM 1.4
---------------------------------------
Key: AMQ-1167
URL: https://issues.apache.org/activemq/browse/AMQ-1167
Project: ActiveMQ
Issue Type: Bug
Affects Versions: 4.1.0
Environment: JVM 1.4.2
Reporter: Woonsan Ko
Priority: Minor
Attachments: example-diff.txt
The example under ./example/ directory does not work because its sources uses Arrays.toString() method, which is available only in JVM 1.5.
So, I modified 'Arrays.toString()' to 'CollectionUtils.arrayToList()' using Spring 2.0 utility. The CollectionUtils.arrayToList() method returns an adequate list instance for primitive arrays or object arrays, and toString() method of list is very similar to 'Arrays.toString()' method.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (AMQ-1167) The example does not work under JVM
1.4
Posted by "Woonsan Ko (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/AMQ-1167?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_39437 ]
Woonsan Ko commented on AMQ-1167:
---------------------------------
Yes, for the examples, Utilities class looks neater than spring dependency. Thanks!
Cheers.
> The example does not work under JVM 1.4
> ---------------------------------------
>
> Key: AMQ-1167
> URL: https://issues.apache.org/activemq/browse/AMQ-1167
> Project: ActiveMQ
> Issue Type: Bug
> Affects Versions: 4.1.0
> Environment: JVM 1.4.2
> Reporter: Woonsan Ko
> Assignee: Adrian Co
> Priority: Minor
> Fix For: 4.1.2
>
> Attachments: example-diff.txt
>
>
> The example under ./example/ directory does not work because its sources uses Arrays.toString() method, which is available only in JVM 1.5.
> So, I modified 'Arrays.toString()' to 'CollectionUtils.arrayToList()' using Spring 2.0 utility. The CollectionUtils.arrayToList() method returns an adequate list instance for primitive arrays or object arrays, and toString() method of list is very similar to 'Arrays.toString()' method.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (AMQ-1167) The example does not work under JVM 1.4
Posted by "James Strachan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/AMQ-1167?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
James Strachan updated AMQ-1167:
--------------------------------
Assignee: Adrian Co
Fancy taking a stab at these Adrian? :)
> The example does not work under JVM 1.4
> ---------------------------------------
>
> Key: AMQ-1167
> URL: https://issues.apache.org/activemq/browse/AMQ-1167
> Project: ActiveMQ
> Issue Type: Bug
> Affects Versions: 4.1.0
> Environment: JVM 1.4.2
> Reporter: Woonsan Ko
> Assignee: Adrian Co
> Priority: Minor
> Attachments: example-diff.txt
>
>
> The example under ./example/ directory does not work because its sources uses Arrays.toString() method, which is available only in JVM 1.5.
> So, I modified 'Arrays.toString()' to 'CollectionUtils.arrayToList()' using Spring 2.0 utility. The CollectionUtils.arrayToList() method returns an adequate list instance for primitive arrays or object arrays, and toString() method of list is very similar to 'Arrays.toString()' method.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (AMQ-1167) The example does not work under JVM 1.4
Posted by "Adrian Co (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/AMQ-1167?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Adrian Co resolved AMQ-1167.
----------------------------
Resolution: Fixed
Fix Version/s: 4.1.2
Fix added to: http://svn.apache.org/viewvc?view=rev&rev=548207
Though I've decided to just create a simple Utilities class to do the converting from arrays to string. Just to avoid adding a dependency to spring and keep the examples simpler.
Thanks for the heads up Woonsan. :)
> The example does not work under JVM 1.4
> ---------------------------------------
>
> Key: AMQ-1167
> URL: https://issues.apache.org/activemq/browse/AMQ-1167
> Project: ActiveMQ
> Issue Type: Bug
> Affects Versions: 4.1.0
> Environment: JVM 1.4.2
> Reporter: Woonsan Ko
> Assignee: Adrian Co
> Priority: Minor
> Fix For: 4.1.2
>
> Attachments: example-diff.txt
>
>
> The example under ./example/ directory does not work because its sources uses Arrays.toString() method, which is available only in JVM 1.5.
> So, I modified 'Arrays.toString()' to 'CollectionUtils.arrayToList()' using Spring 2.0 utility. The CollectionUtils.arrayToList() method returns an adequate list instance for primitive arrays or object arrays, and toString() method of list is very similar to 'Arrays.toString()' method.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.