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/29 15:33:00 UTC

[jira] [Created] (NETBEANS-4276) hint: ClassCastException: JCMethodInvocation not cast to StatementTree

Ernie Rael created NETBEANS-4276:
------------------------------------

             Summary: 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
         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.



--
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