You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Ernie Rael (Jira)" <ji...@apache.org> on 2020/05/21 17:00:00 UTC
[jira] [Updated] (NETBEANS-4356) Unneeded/redundant cast added by
code completion
[ https://issues.apache.org/jira/browse/NETBEANS-4356?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ernie Rael updated NETBEANS-4356:
---------------------------------
Attachment: the-example.jar
> Unneeded/redundant cast added by code completion
> ------------------------------------------------
>
> Key: NETBEANS-4356
> URL: https://issues.apache.org/jira/browse/NETBEANS-4356
> Project: NetBeans
> Issue Type: Bug
> Components: editor - Completion & Templates
> Affects Versions: 12.0
> Environment: Product Version: Apache NetBeans IDE 12.0-beta4
> Updates: Updates available to version NetBeans 8.2 Patch 2
> Java: 14.0.1; Java HotSpot(TM) 64-Bit Server VM 14.0.1+7
> Runtime: Java(TM) SE Runtime Environment 14.0.1+7
> System: Windows 7 version 6.1 running on amd64; UTF-8; en_US (nb)
> Reporter: Ernie Rael
> Priority: Major
> Labels: regresion
> Attachments: the-example.jar
>
>
> Consider the code, caret shown as '|',
> {code:java}
> static private void xxx(ViMark m) {
> if(m instanceof Filemark) {
> if(m.getb|)
> }
> }
> {code}
> Bring up code completion, it show info for Filemark, not ViMark; that could be handy in some cases. BTW, ViMark is an interface. Select method getBuffer() and the result is
> {code:java}
> if(((Filemark)m).getBuffer())
> {code}
> ViMark has a getBuffer method, the cast is bogus. The project is marked 1.8 source.
> I tried it after removing cachedir, still failed. A simple test case works. I'll try to get a smaller case.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists