1. Jan Lahoda
  2. jackpot30

Commits

Jan Lahoda  committed a506dda

Preventing ClassCastException.

  • Participants
  • Parent commits 7953c84
  • Branches remote-usages-to-find-usages

Comments (0)

Files changed (1)

File remoting/ide/usages/src/org/netbeans/modules/jackpot30/ide/usages/RemoteUsages.java

View file
                             OUTER: while (true) {
                                 switch (name.getLeaf().getKind()) {
                                     case PARAMETERIZED_TYPE: name = new TreePath(name, ((ParameterizedTypeTree) name.getLeaf()).getType()); break;
-                                    case MEMBER_SELECT: simpleName = ((MemberSelectTree) name).getIdentifier(); break OUTER;
+                                    case MEMBER_SELECT: simpleName = ((MemberSelectTree) name.getLeaf()).getIdentifier(); break OUTER;
                                     case IDENTIFIER: simpleName = ((IdentifierTree) name.getLeaf()).getName(); break OUTER;
                                     default: name = getCurrentPath(); break OUTER;
                                 }