Uploaded image for project: 'Byteman'
  1. Byteman
  2. BYTEMAN-394

Parser fails to recognize class literal expression as base for method or field access

XMLWordPrintable

      The following expression fails to parse

      System.out.println("Loader of Foo.class is " + Foo.class.getClassLoader());

      Bracketing the class literal makes it owrk

      System.out.println("Loader of Foo.class is " + (Foo.class).getClassLoader());

              rhn-engineering-adinn Andrew Dinn
              rhn-engineering-adinn Andrew Dinn
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: