Bug 105595 - [editor] class "cannot be resolved" error from static member on interface class referenced from library in (very large) external jar file
Summary: [editor] class "cannot be resolved" error from static member on interface cla...
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal with 1 vote (vote)
Target Milestone: 3.2 M6   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-29 13:42 EDT by Mike Amend CLA
Modified: 2006-04-04 05:08 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Amend CLA 2005-07-29 13:42:27 EDT
Easy repro class:

package com.bea.example;

import weblogic.management.mbeanservers.runtime.RuntimeServiceMBean;

public class JMXClient
{
   public static void main(String[] args)
   {
   	System.out.println(RuntimeServiceMBean.OBJECT_NAME);
   }
}

The editor is giving an error stating "The import 
weblogic.management.mbeanservers.runtime.RuntimeServiceMBean cannot be 
resolved" when I absolutely know for fact that this class exists within the 
the weblogic.jar file which has been added to the libraries as an external jar 
file.

The code actually compiles and executes just fine, only the editor shows an 
error acting as though it cannot find this class definition (interestingly 
enough, the package explorer and other components don't show this error like 
they normally do).

The weblogic.jar file I am using is from the latest release of BEA WebLogic 
Server 9.0 available at http://commerce.bea.com/index.jsp for public download. 

The weblogic.jar file is extremely large (~75M).  If I extract out only the 
few interface class I'm using in my project and add these libraries as an 
external jar in a tiny file it works fine.

Please let me know if you need any assistance at all repro this problem.

eclipse.buildId=I20050627-1435
os.arch=x86
os.name=Windows XP
os.version=5.1
java.runtime.version=1.5.0_02-b09
java.specification.name=Java Platform API Specification
java.specification.vendor=Sun Microsystems Inc.
java.specification.version=1.5
java.vendor=Sun Microsystems Inc.
java.vendor.url=http://java.sun.com/
java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi
java.version=1.5.0_02
java.vm.info=mixed mode
java.vm.name=Java HotSpot(TM) Client VM
java.vm.specification.name=Java Virtual Machine Specification
java.vm.specification.vendor=Sun Microsystems Inc.
java.vm.specification.version=1.0
java.vm.vendor=Sun Microsystems Inc.
java.vm.version=1.5.0_02-b09

TIA
Comment 1 Mike Amend CLA 2005-07-29 13:47:07 EDT
Clarification, it doesn't appear to have anything to do with accessing the 
public static final member of the interface class as it seems it simply cannot 
find the class defintion of the interface itself.
Comment 2 Philipe Mulet CLA 2006-03-30 08:17:32 EST
Frederic - pls try to reproduce with latest.
Comment 3 Frederic Fusier CLA 2006-04-04 05:08:55 EDT
Cannot reproduce using 3.2 M6