Scala Programming Language
  1. Scala Programming Language
  2. SI-6026

:javap generates "Could not find class bytes ..." error

    Details

      Description

      Windows 7 Home Premium 32 bit SP1

      Welcome to Scala version 2.10.0-M4 (Java HotSpot(TM) Client VM, Java 1.6.0_33).
      Type in expressions to have them evaluated.
      Type :help for more information.
      
      scala> class A
      defined class A
      
      scala> :javap -v A
      Failed: Could not find class bytes for 'A'
      

      In scala 2.9.2 REPL this works

        Activity

        Hide
        Paul Phillips added a comment -

        Not enough to go on, and possibly overtaken by events.

        Show
        Paul Phillips added a comment - Not enough to go on, and possibly overtaken by events.
        Hide
        A. P. Marki added a comment -

        This is what I got last summer, too.

        You go, "How could that not work?" and then you're sucked in.

        I'm pretty sure there's a horror flick where one of the young naifs says, "How could that not work?" and starts to fiddle, and the audience screams at the screen, "No! Don't fiddle!"

        Show
        A. P. Marki added a comment - This is what I got last summer, too. You go, "How could that not work?" and then you're sucked in. I'm pretty sure there's a horror flick where one of the young naifs says, "How could that not work?" and starts to fiddle, and the audience screams at the screen, "No! Don't fiddle!"
        Hide
        A. P. Marki added a comment - - edited

        Avoid the class loader bug by not creating a new loader if javap is available on the interpreter's class path.

        It might be nice to back port the bug fix for AFCL, too.

        Show
        A. P. Marki added a comment - - edited Avoid the class loader bug by not creating a new loader if javap is available on the interpreter's class path. It might be nice to back port the bug fix for AFCL, too.
        Hide
        A. P. Marki added a comment -

        https://github.com/scala/scala/pull/3052

        This lets you work around the bug by `scala -toolcp tools.jar` instead of other gymnastics.

        Show
        A. P. Marki added a comment - https://github.com/scala/scala/pull/3052 This lets you work around the bug by `scala -toolcp tools.jar` instead of other gymnastics.
        Hide
        A. P. Marki added a comment -

        Supplemented by

        https://github.com/scala/scala/pull/3053

        which backports the `findResource` for AFCL. The use case should just work now.

        Show
        A. P. Marki added a comment - Supplemented by https://github.com/scala/scala/pull/3053 which backports the `findResource` for AFCL. The use case should just work now.

          People

          • Assignee:
            A. P. Marki
            Reporter:
            DaveScala
          • Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development