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: | Introduce a variable doesn't work | ||
---|---|---|---|
Product: | java | Reporter: | ma.schroed |
Component: | Hints | Assignee: | Svata Dedic <sdedic> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | CC: | ralphbenjamin |
Priority: | P3 | ||
Version: | 8.0 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
ma.schroed
2014-04-24 20:59:41 UTC
Not a P2 defect. Yes, it's a known issue, sadly. The reason is that the selection is (currently) implemented supposing that a region for a complete AST subtree is selected. This is the case of a/b selection. In 2 * a / b, the * associates left, so the expression is (in the tree form) actually (2 * a) / b; so a/b selection spans two branches of the AST treee, but not their common root -> invalid selection. It's unfortunate, since the internal form does not make sense to the user. The way how we work with selection must change. 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 |