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 253090 - "Search Module Dependency for xxx" hint fails on static import
Summary: "Search Module Dependency for xxx" hint fails on static import
Status: NEW
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Martin Kozeny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-21 02:45 UTC by err
Modified: 2016-04-14 13:51 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description err 2015-06-21 02:45:35 UTC
Converting a module from 8.0.x to 8.1, in a file with the following line

    import static org.openide.util.ImageUtilities.loadImage;

I get a hint

    Search Module Dependency for org.openide.util.ImageUtilities.loadImage

I select the hint and the "Add Module Dependency" comes up with

    org.openide.util.ImageUtilities.loadImage

in the "Filter:" field, and the "Module:" list is empty. If I change the filter to

    org.openide.util.ImageUtilities

then it works as expected.
Comment 1 err 2015-06-21 02:46:13 UTC
And...

Product Version: NetBeans IDE Dev (Build 201506200001)
Java: 1.8.0_40; Java HotSpot(TM) 64-Bit Server VM 25.40-b25
Runtime: Java(TM) SE Runtime Environment 1.8.0_40-b26
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 2 tombart 2016-04-05 15:34:19 UTC
It seems like the class org.openide.util.ImageUtilities is not present in RELEASE81, although everything seems to be fine with RELEASE802.

I'm unable to compile mine netbeans platform project with RELEASE81. The api docs for ImageUtilities is missing:

http://bits.netbeans.org/8.1/javadoc/org-openide-util/org/openide/util/ImageUtilities.html

I couldn't find any mention that the API is deprecated. Is it?
Comment 3 tombart 2016-04-14 13:51:37 UTC
The class org.openide.util.ImageUtilities was moved to org-openide-util-ui, when upgrading to 8.1 you need to add new dependency:

        <dependency>
            <groupId>org.netbeans.api</groupId>
            <artifactId>org-openide-util-ui</artifactId>
            <version>RELEASE81</version>
        </dependency>