cclose1 opened a new issue, #8953:
URL: https://github.com/apache/netbeans/issues/8953

   ### Apache NetBeans version
   
   Apache NetBeans 27
   
   ### What happened
   
   Adding a duplicate private java script class variable causes a silent 
compilation failure.
   
   ### Language / Project Type / NetBeans Component
   
   Javascript
   
   ### How to reproduce
   
   Add following class to a js file
   
   class Test {
     #var1;
     #var1;
   }
   
   Causes the js file containing it to not build without any error report. I 
had copied the variable meaning to change the copies name. Unfortunately I 
forgot to change the name and it took a long time to discover why. I accept 
having a private variable which duplicates another is an error, but surely it 
should fail the build with an error message.
   
   ### Did this work correctly in an earlier version?
   
   No / Don't know
   
   ### Operating System
   
   Windows 11
   
   ### JDK
   
   Java EE 6 Web
   
   ### Apache NetBeans packaging
   
   Apache NetBeans platform
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a pull request?
   
   No


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to