That add-on for the Mobile Sensor API (and its bug) seems to be merged into the main development branch: My factory new Nokia N86 8MP (Firmware 21, Java Runtime 1.0.5) has the same issue.
Code:
boolean supportsMobileSensor()
{
boolean b = false;
try
{
Class.forName("javax.microedition.sensor.SensorManager");
b = true;
}
// standard case, if not supported
catch (ClassNotFoundException e) { b = false; }
// bad language setting with Nokia implementation
catch (Error e) { b = false; }
return b;
}
The same happens for a Nokia E72 (Firmware 21, Java Runtime 1.0.5).