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 253529 - ServiceProvider on mavenized modules raise NoSuchFileException (Failed to read file in META-inf)
Summary: ServiceProvider on mavenized modules raise NoSuchFileException (Failed to rea...
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Lookup (show other bugs)
Version: 8.1
Hardware: PC Windows 8 x64
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords: JDK_9
Depends on:
Blocks:
 
Reported: 2015-07-16 15:55 UTC by skygo
Modified: 2016-05-18 15:35 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
mini maven project for reproductibiity (8.83 KB, application/zip)
2015-07-16 15:55 UTC, skygo
Details
Patch for ServiceProvider processor (1.28 KB, patch)
2015-09-15 12:03 UTC, skygo
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description skygo 2015-07-16 15:55:42 UTC
Created attachment 154684 [details]
mini maven project for reproductibiity

Hi, try to test my modules against jdk9 with maven and netbeans.

Usage of serviceprovider annoation raise and exception during compilation time.
I have a simplified project attached. (With class containg jdk9 code to be sure correct jdk is used) 

I raised and issue against another annoation see [1].

[1]https://netbeans.org/bugzilla/show_bug.cgi?id=253337
Comment 1 skygo 2015-09-15 12:03:48 UTC
Created attachment 156183 [details]
Patch for ServiceProvider processor

On jdk9 NoSuchFileException can be raised. Need to be catch in order to create the layer file.
Comment 2 skygo 2015-09-15 12:10:08 UTC
Sorry I think I miss a point with bugzilla. 

I just wanted to add Martin Entlicher because he fix #253337 and the resolution for this one is the same (just that it need to be jdk6 compliant with no multicatch).
But it remove one member of the cc list.
Comment 3 Martin Entlicher 2016-05-18 15:35:51 UTC
Already fixed in bug #259024. Thanks.