History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: AMQ-1167
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Adrian Co
Reporter: Woonsan Ko
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
ActiveMQ

The example does not work under JVM 1.4

Created: 21/Feb/07 08:26 PM   Updated: 17/Jun/07 11:50 PM
Component/s: None
Affects Version/s: 4.1.0
Fix Version/s: 4.1.2

Time Tracking:
Not Specified

File Attachments: 1. Text File example-diff.txt (4 kb)

Environment: JVM 1.4.2

Patch Info: Patch Available


 Description  « Hide
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.



 All   Comments   Work Log   Change History   Subversion Commits   FishEye   Crucible      Sort Order: Ascending order - Click to sort in descending order
James Strachan - 12/Jun/07 03:30 AM
Fancy taking a stab at these Adrian?

Adrian Co - 17/Jun/07 09:41 PM
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.


Woonsan Ko - 17/Jun/07 11:50 PM
Yes, for the examples, Utilities class looks neater than spring dependency. Thanks!
Cheers.