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: | Ignore user input for closing parentheses, when they have already been generated | ||
---|---|---|---|
Product: | java | Reporter: | lukas.eder |
Component: | Editor | Assignee: | Dusan Balek <dbalek> |
Status: | NEW --- | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 8.1 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
lukas.eder
2016-01-03 18:44:20 UTC
In fact, this doesn't always happen, but it seems to happen very often in the code I'm currently writing. Here's a way to reproduce the issue: ------------------------------------------ public class Test { public void x() { assertEquals( asList( new BigDecimal ) ) } } ------------------------------------------ Now, place the cursor after "BigDecimal" and type "()". The result is: ------------------------------------------ public class Test { public void x() { assertEquals( asList( new BigDecimal()) ) ) } } ------------------------------------------ This indeed looks like a bug to me and I can reproduce it with 8.0.2. Normally this just works as you say. E.g. this works: public class Test { public void x() { new BigDecimal } } |