• Post Reply Bookmark Topic Watch Topic
  • New Topic

ProGuard, native method, and NoSuchMethodError  RSS feed

 
Joe Vahabzadeh
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All,

On the project I'm working on, we're trying to use ProGuard to shrink the code and perform obfuscation.

In addition, there's some JNI at work - we've got some calls to native methods that are all contained in a single .dll

However, we've run into a problem we can't seem to surmount.. yet.

There's one class, call it myClass, and it has several native methods, most of which return int, long, or even void (does something internally and returns nothing). One of them, however, returns a List of a class that we've defined.

So, we've got two particular methods of interest:


Now, in our .pro file, we've got the following entries:


In one method in myClass, there's first a call to getValue, then a call to createListFromValue in the very next line. The former call works fine, and the latter throws up a NoSuchMethodError. This doesn't happen when we don't use ProGuard for obfuscation.

Any idea why this might be? Are there any details I'm missing that will help clarify this?
[ May 21, 2008: Message edited by: Joe Vahabzadeh ]
 
Jaikiran Pai
Sheriff
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe someone at our "Other Java API" forum will be able to help you with this. Moving this post there.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!