Naming changed?

Hello all.
This method used to work with 1.5

java.lang.management.ManagementFactory.memory_mxbean

NoMethodError: undefined method `memory_mxbean’ for
Java::JavaLangManagement::ManagementFactory:Class

Now it works as java.lang.management.ManagementFactory.memory_mx_bean
Anybody know if this is expected?
Thanks!
-r

Our algorithm (regex actually) for converting camelCase to snake_case
was improved in 1.6. Even though it broke your code in this case, I
think the newer conversion is better, don’t you?

/Nick

yeah looks nicer :slight_smile:

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs