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.
Summary: | [82cat] Auto complete suggestions don't show first time | ||
---|---|---|---|
Product: | java | Reporter: | mclaborn <mclaborn> |
Component: | Compiler | Assignee: | Dusan Balek <dbalek> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 8.2 | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | dump file mentioned in the error |
Description
mclaborn
2016-09-16 17:50:00 UTC
Can you please attach home/mclaborn/.netbeans/8.2rc/var/log/PanelOperatorManager_18.dump? Thanks Created attachment 162100 [details]
dump file mentioned in the error
Unfortunately, I cannot reproduce the issue. Is the problem reproducible when starting NB with a fresh userdir? An attempt for "blind" fix. http://hg.netbeans.org/jet-main/rev/47d552b2340f The problem IS reproducible with a fresh user dir. I noticed that the problem does not happen everywhere in that particular file, but it does happen consistently in one of the methods. Can you let me know when the fix is available in a dev build, and I will download and test. Sure, I'll let you know. Meanwhile, could you please specify the exact place in your source where the issue is reproducible? Thanks. I'm happy to send you the source file and show you where. How can I get it to you privately? Source file sent privately. Integrated into 'main-silver', will be available in build *201609210002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/47d552b2340f User: Dusan Balek <dbalek@netbeans.org> Log: Issue #268069 - Auto complete suggestions don't show first time - attempt to fix. Unfortunately, I cannot reproduce the issue even when tested with the privately sent source file. Could you please download the build *201609210002* from http://bits.netbeans.org/dev/nightly/ and test it again? Thanks. The dev build did not correct the problem, but I was able to narrow it done significantly. See the method below. As shown, the test case (typing "lbl" and ctrl + space in the body of the panelShownFirstTime() method) fails. But if I remove the txtCustomerID.addDocumentListener statement, then it works as it should. MyDocumentListener is an abstract inner class. See it's definition below. I tried making MyDocumentListener not abstract - did not help. Moving MyDocumentListener from an inner class to a stand alone class DID make the problem go away. I tried a simple test case file based on inner classes but could not reproduce. /** * First time in, load the data */ @Override protected void panelShownFirstTime() { if (getMMFrame() == null) { return; } // load data loadEmployees(); loadOperators(null); txtCustomerID.addDocumentListener(new MyDocumentListener() { @Override void doit() { operator.setAssociatedCustomerid(txtCustomerID.getInteger()); } }); } /** * Simple class to use as listener for text field changes. * Take action only when there is an operator and the keeper is empty */ private abstract class MyDocumentListener extends MMTextFieldDocumentListener { @Override public void documentUpdated(DocumentEvent e) { if (operator != null && keeperEdit.isEmpty()) { doit(); setComponentStatus(); } } /** * Take some action. Current operator is not null and the keeper is empty */ abstract void doit(); } Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/7723d5ada2ce Integrated into 'main-silver', will be available in build *201705130001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/7723d5ada2ce User: Dusan Balek <dbalek@netbeans.org> Log: Issue #268069 - [82cat] Auto complete suggestions don't show first time - fixed. |