The implementation of JavaInstance is a simple wrapper around a JNI jobject. To allow implementations flexibility in how the binding to a Java object is achieved, JavaInstance should be an interface. The current JavaInstance implementation would be moved to a new JavaInstanceJobject class which implements this interface.
Created attachment 88047 [details]
> + m_class = 0;
Can we use an initialization list instead?
> + delete m_class;
Use an OwnPtr?
> Can we use an initialization list instead?
> Use an OwnPtr?
Created attachment 88249 [details]
Comment on attachment 88249 [details]
Committed r82950: <http://trac.webkit.org/changeset/82950>