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/04/15 12:36:00 UTC
[jira] [Created] (NETBEANS-4174) Custom hint not getting badge
Ernie Rael created NETBEANS-4174:
------------------------------------
Summary: Custom hint not getting badge
Key: NETBEANS-4174
URL: https://issues.apache.org/jira/browse/NETBEANS-4174
Project: NetBeans
Issue Type: Bug
Components: editor - Hints & Annotations, java - Hints
Affects Versions: 12.0
Reporter: Ernie Rael
Custom hint, options show it as "WARNING", but no badges. Regression from 11.3.
"Refactor > Inspect&Transform" work with it.
Given this file
{code:java}
package play;
import javax.swing.text.Segment;
public class NewClass
{
void t(Segment s, int col)
{
char c;
c = s.array[col + s.offset];
c = s.array[s.offset + col];
}
}
{code}
and in userdir/config/rules
{code:java}
<!description="seg.array TO seg.charAt">
$seg.array[$val + $seg.offset]
::
$seg instanceof javax.swing.text.Segment
=>
$seg.charAt($val)
;;
$seg.array[$seg.offset + $val]
::
$seg instanceof javax.swing.text.Segment
=>
$seg.charAt($val)
;;
{code}
--
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