<< Back to previous view

[JMX-10] jmx/readable? makes incorrect call to .isReadable Created: 29/Oct/12  Updated: 26/Jul/13  Resolved: 16/Dec/12

Status: Resolved
Project: java.jmx
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Defect Priority: Minor
Reporter: Andy Fingerhut Assignee: Nick Bailey
Resolution: Completed Votes: 0
Labels: None

Patch: Code and Test

 Description   

In the definition of jmx/readable?, copied below, .isReadable is called.

(defn readable?
"Is attribute readable?"
[n attr]
(.isReadable (mbean-info n)))

My guess is that the intended isReadable method is from the class MBeanAttributeInfo http://docs.oracle.com/javase/1.5.0/docs/api/javax/management/MBeanAttributeInfo.html#isReadable%28%29

However, mbean-info returns an instance of class MBeanInfo. Also note that the attr argument of readable? isn't even used.



 Comments   
Comment by Nick Bailey [ 16/Dec/12 5:22 PM ]

Fixed:

https://github.com/clojure/java.jmx/commit/69ebdef1881709b21bc1ae3181d41a54129f7f8f

Generated at Wed Jul 30 02:06:13 CDT 2014 using JIRA 4.4#649-r158309.