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 270615 - reopen 'bogus "incorrect package" message' (#160383)
Summary: reopen 'bogus "incorrect package" message' (#160383)
Status: NEW
Alias: None
Product: ide
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.2
Hardware: PC Windows 10 x64
: P3 normal (vote)
Assignee: issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-11 16:50 UTC by ljb
Modified: 2017-05-11 17:40 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 ljb 2017-05-11 16:50:51 UTC
RE: bogus package error (REOPEN 160383)
-----------------------
I found this report thread, and Martin's last post to it, earlier this week. I posted a reply (copied below, with a few edits) since it seems to satisfy Martin's criteria for a response.

I've decided to launch a new report since I've had no response for several days (because it is considered closed?), and I'm guessing this is what he means by "reopen".

Not sure exactly where to place this - it seems to impact both the IDE and the debugger but in slightly different ways.

The earlier report seemed to indicate that it prevented the poster from working on the source code. I'm not impacted to that extent. For me it is an inconvenience and an annoyance and a puzzle. When I first imported the code it seemed to run fine and it wasn't until later that I realized there were any issues. I can still edit, compile and run the code, as long as I do some thinking and using a work-around or two. 

But that should not be necessary. (?)

LB



Final post in thread 'bogus "incorrect package" message' (160383 started in 2009 and continued in 2015 and 2016)
---------------------------------------------------------------------------------------------------------
Martin Balin 2016-07-07 07:16:27 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss




Copy of my reply to Martin Balin
--------------------------------
I'm just getting started with 8.2, and I am seeing this 'incorrect package' error.

***

I have downloaded source code from Interactive Brokers for their demo app to use their API to get data from their server farm. (No account is needed to get the source code and run it, but you can't connect to the servers without an account.)

The app compiles and seems to work fine. I've been exploring and modifying the code for a week or two, hoping to be able to "fix" it. (It's pretty lame as is, but then what do you expect from a demo?)

Anyway, as I was exploring the use of the debugger to help understand the source code I noticed that sometimes (e.g. when I tried to jump to the code for a component in the demo's GUI) I would get an error message saying the source code file could not be found.

I knew this had to be a bug of some sort since the debugger could run the demo just as easily as the main part of NB. And besides, the source file in question was on the tab next to the 'Snapshot of ""' tab.

I searched this and other forums looking for "file not found" sort of errors from the debugger, but got no relevant hits.

Then the other day I noticed a "package error" message at the top of a file. One of the suggestions to fix it was 'move the class to the right place'. I tried this and it worked.

It changed the package ref from "apidemo" to "apidemo/apidemo". In the existing apidemo folder a new folder, named apidemo, was added and the unfind-able file was moved (not copied) from "apidemo" to "apidemo/apidemo". 

This did not break the demo program. It still works, both in the main NB program and in the debugger. But now the debugger can find that particular source file. But only that one. The other source files that go with GUI components are sill not find-able.

I did the "fix by moving" thing to one other of these not find-able files. It was also moved from "apidemo" to "apidemo/apidemo". And the debugger can now find it. There are just those two files in the new folder. All the others are still in the original folder.

***

I realize that I will probably have to provide more details.

Ask and you shall receive.

***

System specs:
HP pc with W10 pro; quad core Pentium @ 3+ GHz; 1 TB hd; 16 GB ram; 3 monitors @ 1920 X 1600; NB 8.2

I have reinstalled both NB and the IB demo code. No changes in behavior.
Comment 1 ljb 2017-05-11 16:52:44 UTC
my email address is not ljb@netbeans.org

use gamemaster@airmail.net
Comment 2 ljb 2017-05-11 17:40:23 UTC
(In reply to ljb from comment #1)
> my email address is not ljb@netbeans.org
> 
> use gamemaster@airmail.net

***
***

or maybe it is ...

I just sent a test to ljb@netbeans.org
and it worked