Making Methods Not final Doesn’t Work

As expected, removing the final flag from methods doesn’t work, at least not in java.lang.Object. When I do that, the Visual Studio debugger comes up, so it’s probably something the JVM really doesn’t like. I haven’t tested it with other classes. I suspect this might work with classes that aren’t so intricately involved with JVM initialization, so I might be able to use this (easier) way sometimes.

It really seems like I have to do a global instrumentation and change calls to Object methods everywhere.

Share

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