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 138484 - [Mac] Go to Java sources does not work
Summary: [Mac] Go to Java sources does not work
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: Macintosh Mac OS X
: P2 blocker (vote)
Assignee: Petr Nejedly
Keywords: RELNOTE
Depends on:
Reported: 2008-06-27 14:16 UTC by Alexandr Scherbatiy
Modified: 2008-08-22 11:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:

IDE log file (52.98 KB, text/plain)
2008-06-27 14:17 UTC, Alexandr Scherbatiy

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2008-06-27 14:16:17 UTC
Steps to reproduce:

- Create JavaFX Script file:
import java.lang.System;

- Hold <Ctrl> ( Command on Mac) and click on 'println' method
  Nothing  happens.

----------  message. log  -------------------
Error at [1:1]/0 - Sorry, I was trying to understand an import declaration but I got confused when I saw '<EOF>'.
 Perhaps you are missing a '*'.Error at [1:1]/0 - Sorry, I was trying to understand an import declaration but I got confused when I saw '<EOF>'.
 Perhaps you are missing a '*'.INFO [org.netbeans.api.javafx.source.CompilationInfoImpl]: Error at [15:18]/164 - package java.lang does not exist
move semicolon:
  token: SEMI
INFO [org.netbeans.modules.javafx.editor.format.JFXIndentTask]: Parser time: 3ms
INFO [org.netbeans.modules.javafx.editor.format.JFXIndentTask]: The PARSED phase has been reached ... OK!
Comment 1 Alexandr Scherbatiy 2008-06-27 14:17:41 UTC
Created attachment 63599 [details]
IDE log file
Comment 2 David Strupl 2008-06-27 14:22:14 UTC
Just a note. This works for me on Linux. But I cannot comment about Mac ... Petr has written the goto ...
Comment 3 Petr Nejedly 2008-06-27 15:28:49 UTC
Do you have the platform set up correctly for the project in which you test this?
Comment 4 Petr Nejedly 2008-06-27 15:31:37 UTC
Please check whether your platform definition contains in the sources tab. Recent build should automatically add
it to the default (bundled) platform, but I'm not sure about it in case you added new platform manually.
Comment 5 Alexandr Scherbatiy 2008-06-30 13:42:54 UTC
I used  the default JavaFX Script platform.
But I tried the go to source feature for a Java project and it does not work to.
It seems that go to source feature works with jdk 1.5 and does not work with jdk 1.6 for Java projects.
Comment 6 Petr Nejedly 2008-07-15 19:31:12 UTC
I have just tested it on Mac with few days old build and a new userdir, and it works for me.
I have created new sample project -> Color, verified the platform contains reference to the JFX-sdk sourceball
(it did, but haven't listed java's, so no go-to-java.lang.String for example, but that's a different issue)

In my case, I had to change Frame references to SwingFrame (otherwise it was not compilable on my SDK) and then
apple-click placed me directly into the SwingFrame.fx source file.
Comment 7 Lark Fitzgerald 2008-07-15 20:02:47 UTC
Reopening.  This issue isn't about going to JavaFX sources, its about going to java sources.
Comment 8 Petr Nejedly 2008-07-15 21:43:45 UTC
Well, I have to close it as WONTFIX then. Or do you actually have JDK sources for your OS-X JDK?
If you find them, add them to your platform definition and it will work.

Does go-to-java.lang.String work for you in J2SE projects?
Comment 9 Petr Nejedly 2008-07-15 22:05:08 UTC
"If you find them, ..."
Oh, I forgot to mention, reopen then and reassign to the javafx/platform module.
Comment 10 Lark Fitzgerald 2008-07-16 01:48:29 UTC
May want to release note this.
Comment 11 Alexandr Scherbatiy 2008-08-22 11:50:53 UTC