Don’t Touch Apple’s Number

I finished my divide-and-conquer trial-and-error analysis of what Java runtime classes I may not instrument in Apple’s VM, and apparently the problematic class (in addition to java.lang.Object and java.lang.String, which were also restricted on the Sun VM) is java.lang.Number. How weird. What’s special about that class?


Looking back, this question seems silly: Apple probably optimized the representation of Numbers, just like Sun did with Strings.


About Mathias

Software development engineer. Principal developer of DrJava. Recent Ph.D. graduate from the Department of Computer Science at Rice University.
This entry was posted in Concurrent Unit Testing. Bookmark the permalink.

Leave a Reply