This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Error cannot find symbol from an existing class in the library | ||
---|---|---|---|
Product: | java | Reporter: | psecheresse <psecheresse> |
Component: | Source | Assignee: | Svata Dedic <sdedic> |
Status: | RESOLVED WONTFIX | ||
Severity: | blocker | ||
Priority: | P4 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | Example project displaying the errors conatining the Sentinel jar |
Description
psecheresse
2008-11-25 10:16:22 UTC
Created attachment 74123 [details]
Example project displaying the errors conatining the Sentinel jar
Turn off Compile On Save (in project properties), it will bring back the old behavior at least The main problem here seems to be that the SentinelManager/lib/rainbow.jar is broken. For example: $ jar tf rainbow.jar java.util.zip.ZipException: invalid entry size (expected 868548616 but got 439 bytes) at java.util.zip.ZipInputStream.readEnd(ZipInputStream.java:376) at java.util.zip.ZipInputStream.read(ZipInputStream.java:148) at java.util.zip.ZipInputStream.closeEntry(ZipInputStream.java:92) at sun.tools.jar.Main.list(Main.java:863) at sun.tools.jar.Main.run(Main.java:212) at sun.tools.jar.Main.main(Main.java:1022) Something similar happens when the IDE tries to read the file. The command line javac probably reads the jar using some other way than the jar tool and the IDE. We might be able to workaround this (accept the broken jar file). The problem seems to be that the local file header has the "Data Descriptor" bit set, but the "Data Descriptor" block does not follow the file data. The command line unzip tool was able to unpack the file for me. When I repacked the file (i.e. fixed it), the project started to behave normally. Well done! Re jaring the librairy fixed the problem. I could not imagine that the jar was corrupted as it is used for years without problem and Eclipse does not complain. Overtake. Reassigning all moonko's java/source bugs to myself. This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss |