| Summary: | Code behaves different on development platform and productive system | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Hendrik Renken <funsheep> |
| Component: | Core | Assignee: | JDT-Core-Inbox <jdt-core-inbox> |
| Status: | VERIFIED INVALID | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | jarthana |
| Version: | 3.8 | ||
| Target Milestone: | 3.8 M6 | ||
| Hardware: | PC | ||
| OS: | Mac OS X - Carbon (unsup.) | ||
| Whiteboard: | |||
Most likely this happens because of an AdminPermission i do not have. Sorry, for any inconvenience this may have caused. Hendrik Verified for 3.8 M6 |
Build Identifier: Version: 3.7.1 Build id: M20110909-1335 When trying the following code on a development platform, it just works and everything is fine. Development platform means: Plugin as a plugin project in the workspace, launching a new Eclipse using the Plugin Project. After deployment via p2-Update site, the code no longer works. An exception is thrown which isn't shown, neither on screen in the error dialog nor in the eclipse error log. The code in question is: List<IClasspathEntry> resolvedEntries = new LinkedList<IClasspathEntry>(); Enumeration<URL> e = Activator.context().getBundle().findEntries(".", "*.jar", true); while (e.hasMoreElements()) { String s = FileLocator.resolve(e.nextElement()).toString(); IPath path = Path.fromOSString(s.substring(5)); resolvedEntries.add(JavaCore.newLibraryEntry(path, path, null)); } Reproducible: Always Steps to Reproduce: 1. Create a new plugin project 2. Run the code e.g. in a simple activator 3. Deploy the plugin 4. Install it through p2-update site 5. Trigger the code, Exception is thrown.