Summary: | Unable to use pack200 on JDT fragments | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Thomas Hallgren <thomas> |
Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> |
Status: | VERIFIED NOT_ECLIPSE | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | aniefer, jarthana, jerome_lanneluc, Olivier_Thomann, srikanth_sankaran |
Version: | 3.4 | ||
Target Milestone: | 3.6 M1 | ||
Hardware: | PC | ||
OS: | Linux | ||
Whiteboard: |
Description
Thomas Hallgren
2008-05-14 02:11:12 EDT
Would you have more information on the reason why pack200 flags these .class files as having a problem? I.e. why is pack200 throwing this SecurityException? (In reply to comment #1) > Would you have more information on the reason why pack200 flags these .class > files as having a problem? I.e. why is pack200 throwing this SecurityException? > No, not much. I get the error when I include them in a zip and pass that zip to the eclipse.jarProcessor ant task with the pack="true" jar="<the zip>". No other options are given. The zip contains a lot of other jars, both from the platform and from our application. None of them pose any problems. Just these two. The zip passes through a 'normalize' without erros prior to the pack attempt but during that phase I guess nothing should happen to these fragments since their eclipse.inf marks them as processed already. Olivier, does this ring any bell? These two jars are the only ones compiled using a compliance 1.6. So maybe this is a bug in pack200 that cannot handle stack map attributes. > The zip passes through a 'normalize' without erros prior to the pack attempt > but during that phase I guess nothing should happen to these fragments since > their eclipse.inf marks them as processed already. I think the jar may be getting re-normalized. Normally this should not be an issue. See however bug 226850, fixed in M7. The SDK conditions/packs all of its jars using effort level 4 because we have seen some .class file corruption in the past using the default level 5. This bug 226850 could potentially cause the jars to be reconditioned using a different effort level, which may cause problems. Try updating the org.eclipse.update.core bundle in your builder to get the fix. As well, you could try lowering the effort level to 4 for all your bundles. Do this by placing a pack.properties file in the root of the zip with a property "pack200.default.args=-E4" Thomas, Did Andrew hint fix your issue ? No, lowering the effort didn't help so we removed the pack of those jars. I suspect that it might be related to another issue with Pack200 not working correctly with J9 version 6. See bug 279596. There is nothing we can do from our side. Closing as NOT_ECLIPSE ? Closing as NOT_ECLIPSE. Verified for 3.6M1 |