The short answer is that there is no specific "throws" concept in the dex format. When a java classfile is converted to the dex format, a Throws annotation is added that contains this information.
Slightly longer answer:
The concept of a checked exception only matters at compile time, not at runtime. The dalvik virtual machine doesn't know about or care what exceptions your method can throw. As far as it is concerned, everything is an unchecked exception. It's the java compiler that enforces that checked exceptions are declared in your throws clause.
As such, it doesn't make sense to add a specific "throws" concept to the dex file. Instead, that information is stored using the more generic annotation feature.
It sounds like you are using something like dex2jar to convert a dex file back to a set of class file and then using jasmin on it. It's likely that dex2jar doesn't remap the Throws annotations from the dex file back to the Exception attribute in the classfile, although I haven't specifically checked whether that is the case.
addMethodAnnotation
inJasminStyleCodeGenerator.java
, it does deal with thethrows
and annotation at the same time but the output just shows that the method annotation is always outputed rather thanthrows
. – Koel