[
https://issues.apache.org/jira/browse/NETBEANS-4276?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17095587#comment-17095587
]
Ernie Rael commented on NETBEANS-4276:
--------------------------------------
May not need to download the attachments...
The hint:
{code:java}
if($opt.getBoolean()) $opt.printf($fmt, $args$)
::
$opt instanceof play.OptUtil1.DebugOption
&& $fmt instanceof String
=>
System.err.printf($fmt)
;;
{code}
The java code
{code:java}
if( dbgOptions.getBoolean())
dbgOptions.printf("Init G.%s to '%s'\n", "foo", "bar");
{code}
> hint: ClassCastException: JCMethodInvocation not cast to StatementTree
> -----------------------------------------------------------------------
>
> Key: NETBEANS-4276
> URL: https://issues.apache.org/jira/browse/NETBEANS-4276
> Project: NetBeans
> Issue Type: Bug
> Components: java - Hints
> Affects Versions: 12.0
> Environment: repo build with commits as of 4/28; jdk14.0.1; win7
> Reporter: Ernie Rael
> Assignee: Jan Lahoda
> Priority: Major
> Attachments: RefactorReflect.zip, messages.log
>
>
> Attached a simple single java file project that causes the problem.
> message.log with Exception also attached. Probably comes down to these lines:
> {code:java}
> Field f = OptUtil1.class.getDeclaredField("baz");
> f.setInt(null, 123);
> {code}
> Using a custom hint; issue2.hint is in the project at top level. Fails both
> with clicking on bulb and inspect&transform.
> Those two lines above, reflection, have nothing to do with it. Delete them,
> leave only the two lines that match the hint. Exception still happens.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
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