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.
Created attachment 123465 [details] Patch Added FileProvider.Context.getLineNumber() method to return the preferred line on which the document should be opened. The FileProviders which are using a custom FileDescription should use this method to open the selected file on preferred line. The FileProviders which are using FileObjects are handled automatically and the document opens on preferred line.
Y01 Why not test other value than -1?
The line number has no effect on the test. The test does not test correct implementation of LineCookie it tests that the FileObject for given file name pattern is found.
Fixed jet-main 1b5cfdcd1598