Some times I see problematic differences between Java doc and Android doc in about method documents.For example in about setReadable (boolean readable, boolean ownerOnly)
method you can see java doc says that:
Throws: SecurityException - If a security manager exists and its SecurityManager.checkWrite(java.lang.String) method denies write access to the file
But Android docs does not say any thing about throwing exception.Also we know that Docs say:
Any Exception that can be thrown by a method is part of the method's public programming interface. Those who call a method must know about the exceptions that a method can throw so that they can decide what to do about them.
So when we do not see any throw condition in Android documents of a method,
- Does it mean method will not throw exception any way?Or it may be forgotten?
- Do we need to check documents for any simple method for probability difference between Java and Android?Is it possible?
Note: I know that
Dalvik, the virtual machine used in Google's Android platform, uses a subset of Harmony for the core of its Class Library.
But I do not think that means possibility of different implementation of a same method in same class.