JDK-4136215 : javah gives error "Bad interface index" in JDK 1.1.6
  • Type: Bug
  • Component: tools
  • Sub-Component: javah
  • Affected Version: 1.1.6
  • Priority: P5
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_2.5.1
  • CPU: generic
  • Submitted: 1998-05-07
  • Updated: 1998-07-14
  • Resolved: 1998-07-14
Related Reports
Duplicate :  
Description
If the file DhSQLException.java, (see attachment) is javac using JDK 1.1.6 it compiles with out errors.  Then when you try to generate a header using javah com.progress.sql.sp.DhSQLException, (still using JDK 1.1.6) the following errors are seen.


Signalled error "java/lang/ClassFormatError" with detail "Bad interface index"
Signalled error "java/lang/NoClassDefFoundError" with detail 
"java/lang/Throwable"
Signalled error "java/lang/NoClassDefFoundError" with detail 
"java/lang/Exception"
com/progress/sql/sp/DhSQLException: no such class

This does not happen with JDK 1.1.5.
charles.salemme@East 1998-05-18

Also see bug report 4136344.
charles.salemme@East 1998-06-16

Comments
WORK AROUND If you put java.lang.Class first before resolving other classes then everything works. For example: javah java.lang.Class com.progress.sql.sp.DhSQLException also see bug report 4136344 charles.salemme@East 1998-06-16
16-06-1998