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 225401

Summary: Ctrl+Click in Java editor on groovy class do not navigate user to groovy editor
Product: groovy Reporter: Otaka
Component: EditorAssignee: Martin Janicek <mjanicek>
Status: NEW ---    
Severity: normal CC: mjanicek, simas, wadechandler
Priority: P3    
Version: 7.3.1   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 211896    

Description Otaka 2013-01-28 09:22:02 UTC
1. Create groovy class TestGroovy
2. Create java class TestJava.
3. In java class write something like
 class TestJava{
static void method(){
    TestGroovy gr=new TestGroovy();

4. Make Ctrl+click on "TestGroovy".

Expected result
 NB should navigate us to TestGroovy.groovy

Actual result
 NB writes "Cannot open TestGroovy" (missing sources?)
Comment 1 Martin Janicek 2013-02-07 08:05:26 UTC
*** Bug 211929 has been marked as a duplicate of this bug. ***
Comment 2 _ wadechandler 2013-04-20 04:28:56 UTC
It also seems if you have Java file and Groovy files in the same project, and if you are in a Groovy file, and you CTRL+Click on a Java class the editor will not navigate to the Java file. This is a Maven project where the Groovy and Java files are under separate directories. Maven projects are laid out like project/src/main/java and project/src/main/groovy. The only work around is to highlight the whole class name and then choose Navigate|Goto Type and it will auto fill in the name for you, and then you click OK. Pretty annoying after a while and disruptive to the workflow.
Comment 3 simas 2014-08-20 11:38:18 UTC
+1 for this