Summary: | ClassFileReader fails on Gnome Twain class | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Craig Setera <craigsfnet> |
Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P2 | ||
Version: | 2.0 | ||
Target Milestone: | 2.0.1 | ||
Hardware: | PC | ||
OS: | Windows 2000 | ||
Whiteboard: |
Description
Craig Setera
2002-07-22 15:06:24 EDT
Should fix asap, for 2.0.1. I think I have a fix for it. The problem comes from the fact that this class contains native or abstract methods with an exception attribute. In this case the code in MethodInfo: this.attributesCount = u2At(classFileBytes, 6, offset); this.attributes = ClassFileAttribute.NO_ATTRIBUTES; if (this.attributesCount != 0) { if (no_code_attribute) { if (this.attributesCount != 1) { this.attributes = new IClassFileAttribute[this.attributesCount - 1]; } } else { this.attributes = new IClassFileAttribute[this.attributesCount]; } } has to be replaced with: this.attributesCount = u2At(classFileBytes, 6, offset); this.attributes = ClassFileAttribute.NO_ATTRIBUTES; if (this.attributesCount != 0) { if (no_code_attribute && !isAbstract() && !isNative()) { if (this.attributesCount != 1) { this.attributes = new IClassFileAttribute[this.attributesCount - 1]; } } else { this.attributes = new IClassFileAttribute[this.attributesCount]; } } Then it should work fine. I am waiting for the TwainManager.class file in order to validate this fix. I can verify that this library provides native methods to access Win32 TWAIN imaging library. Released in 2.0.1 and 2.1 streams. I will verify it as soon as I got the TwainManager.class file. Verified. |