Great question - hate the bugs.
________________________________
From: Emilian Bold <emilian.b...@gmail.com>
Sent: Thursday, November 29, 2018 3:49 PM
To: users@netbeans.apache.org
Subject: Re: Java Syntax checking problem/bug

Interesting. Can you provide a short(er) java file where this bug reproduces?

It might be a nb-javac parser bug or something in the classes built on top of 
that.

Does it happen if you change the variable names (x1, x2, y1, y2, etc)? If it's 
for the same variable name then maybe some hash collision

Can you reproduce this on NetBeans 9 (with, without the nb-javac from Oracle?).

--emi

http://coolbeans.xyz/ - CoolBeans: An IDE for Java, JavaEE, PHP and more!


On Thu, Nov 29, 2018 at 6:52 PM Joseph Huber 
<jhu...@stanref.com<mailto:jhu...@stanref.com>> wrote:

Hello!



Please see the screenshots below (hopefully they come through on the mailing 
list).  I am working with Netbeans 8.2 in Windows 10.  The variable “x1” is not 
defined, but Netbeans stops showing the hint identifying it as a problem after 
it encounters a particular statement.  “x1” is italicized, but no lightbulb in 
the margin or red underscore.  The scope of the problem is not limited to the 
shown method.  The “cannot find symbol” hint stops working for the remainder of 
the file, although other syntax errors are found, and other hints seem to be 
working fine in the remainder of the file.



[X]





Now, commenting out a couple of statements, things work for a little while 
longer.



[X]





Commenting out another statement fixes the problem for the rest of the file.   
There are nearly 1000 lines of code after this code fragment, and the “cannot 
find symbol” checking works fine for the rest of the file after this last 
statement is commented out.



[X]



dptc1 is another DxProTopComponent defined at the class level, jpIB1 is a 
JPanel, and jcbModelFam is a JComboBox.



This is mostly an annoyance, in that if I make a typo, it crashes during debug 
or build, rather than being identified in the editor.



Any thoughts on what might be going on?



Thank You!



Joe Huber


Reply via email to