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.

Bug 179859

Summary: MetaInfServicesLookup does not properly handle services with unresolvable superclass/interface
Product: platform Reporter: Jan Lahoda <jlahoda>
Component: LookupAssignee: Jaroslav Tulach <jtulach>
Status: RESOLVED FIXED    
Severity: normal CC: jglick
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 179749    
Attachments: Sketch of a test.
Jar needed by the test.

Description Jan Lahoda 2010-01-26 02:52:48 UTC
Created attachment 93545 [details]
Sketch of a test.

In:
https://netbeans.org/bugzilla/show_bug.cgi?id=179749#c8
Jesse said that MetaInfServicesLookup should be able to handle broken services - but it does not at least if the service class' parent is not resolvable. I will attach a sketch of a simple test (diff) and a jar file. You need to change the path in the test to an absolute path to your copy of metainftest.jar (the test will obviously need to be improved before inclusion).
Comment 1 Jan Lahoda 2010-01-26 02:53:21 UTC
Created attachment 93546 [details]
Jar needed by the test.
Comment 2 Jaroslav Tulach 2010-02-03 11:54:56 UTC
core-main#6181cc4bdfde
Comment 3 Quality Engineering 2010-02-03 21:54:49 UTC
Integrated into 'main-golden', will be available in build *201002040200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/6181cc4bdfde
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #179859: Treating linkage errors are CNFE