look for initIDs in SunFontManager instead of FontManager

OpenJDK 7 has refactored this code relative to OpenJDK 6, and now
FontManager is an interface, with SunFontManager providing a (partial)
implementation.
This commit is contained in:
Damjan Jovanovic 2012-08-05 19:31:20 -06:00 committed by Joel Dice
parent 5a7c78e71a
commit 53b15d1bca

View File

@ -534,7 +534,7 @@ class MyClasspath : public Classpath {
virtual void
resolveNative(Thread* t, object method)
{
if (strcmp(reinterpret_cast<const int8_t*>("sun/font/FontManager"),
if (strcmp(reinterpret_cast<const int8_t*>("sun/font/SunFontManager"),
&byteArrayBody(t, className(t, methodClass(t, method)), 0)) == 0
and strcmp(reinterpret_cast<const int8_t*>("initIDs"),
&byteArrayBody(t, methodName(t, method), 0)) == 0