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 258168 - Cannot navigate to method created via refactoring
Summary: Cannot navigate to method created via refactoring
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-27 20:43 UTC by bht
Modified: 2016-08-19 22:04 UTC (History)
2 users (show)

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 bht 2016-02-27 20:43:39 UTC
I type a new non-existing method call in a declared service class. I let the IDE create it via [Alt+Enter] Create method "typedMethod" in package.KnownClass and press [Enter].

The method is created in KnownClass which is also saved. However, no scanning happens and the typed method call is still highlighted red erroneous as before, still prompting me to create the method.

It takes about 10 minutes until this problem fixes itself.

The computer is fast and I do not experience any IDE performance issues otherwise.

I would normally provide a test case but I guess this will not reproduce readily and I don't yet have a clear idea about the circumstances.

I cannot see anything special in the log file.
Comment 1 Svata Dedic 2016-08-19 06:32:54 UTC
I've tried that, but after the hint executed error mark was removed. Do you see this behaviour consistently ?
Comment 2 bht 2016-08-19 22:04:46 UTC
It happens consistently in between two maven jar projects. So if I have a client project from which to call a service method in the other service project that is the situation that breaks.

It is confusing because the IDE lets me do this - it creates the service method in the other project as expected.

However unlike what I wrote earlier, the IDE does not save the service class automatically, and I can confirm that this time, navigation works after I save the service class manually. Whether that always works consistently, I cannot confirm at this stage.