Java 5 support in Jdec – Finally !

What a relief - I can probably claim now quite confidently that Jdec support Java 1.5 important features- namely :

  1. Annotation support
  2. Generic Support (? How come- read on)

Annotation support – The class spec mentions both Runtime visible and invisible annotaitons at various levels :

  1. Class level
  2. Method level
  3. Method Parameter level
  4. Field level

I was able to add support for all these into jdec in the past couple of weeks.

Generic Support

Well, we know that generic are implemented by erasure. BUT the good part is that if the class is compiled with debug support, then jdec can give out better decompiled output by reading generic signature that is registered by the compiler in constant pool section of the class file.

This is how generic support has been implemented in Jdec. We know the saying right- somethings better than nothing.I will be posting some code sample of code decompiled by jdec in the following blogs

NOTE: The updated code is still not present in sf.net. I will make a release probably after few weeks when I have fixed many regular bugs in jdec.

2 responses to this post.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.