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

REPL: :javap doesn't work with JDK7 b147 ":javap unavailable on this platform."

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: Scala 2.9.0-1
    • Fix Version/s: Scala 2.11.0-M1
    • Component/s: Repl / Interpreter
    • Environment:

      Windows 7 Home Premium 32 bit + SP1
      JDK 7 b147
      Scala 2.9.1.RC3

      Description

      :javap in the REPL of Scala 2.9.1.RC3 works with jdk1.6 but not with jdk1.7 b147

      I also tried using tools.jar of jdk 1.6 with JDK 1.7 but
      that was also a ":javap unavailable on this platform.
      " message.

      see forum http://www.scala-lang.org/node/10703

      JDK 7
      =====
      C:\scala-2.9.1.RC3\examples>scala
      Welcome to Scala version 2.9.1.RC3 (Java HotSpot(TM) Client VM, Java
      1.7.0).
      Type in expressions to have them evaluated.
      Type :help for more information.
      scala> :javap err.Test
      :javap unavailable on this platform.

      JDK6
      ====
      C:\scala-2.9.1.RC3\examples>scala
      Welcome to Scala version 2.9.1.RC3 (Java HotSpot(TM) Client VM, Java
      1.6.0_18).
      Type in expressions to have them evaluated.
      Type :help for more information.

      scala> :javap err.Test
      Compiled from "err.scala"
      public final class err.Test extends java.lang.Object

      { public static final void main(java.lang.String[]); public static final void delayedInit(scala.Function0); public static final java.lang.String[] args(); public static final void scala$App$_setter_$scala$App$$initCode_ $eq(scala.co llection.mutable.ListBuffer); public static final void scala$App$_setter_$executionStart_ $eq(long); public static final scala.collection.mutable.ListBuffer scala$App$ $initCode( ); public static final void scala$App$$_args_$eq(java.lang.String[]); public static final java.lang.String[] scala$App$$_args(); public static final long executionStart(); public static final void x_$eq(int); public static final int x(); public static final int[] ar(); }

        Activity

        Hide
        Paul Phillips added a comment -

        Looks like all the javap internals changed in java7.

        Show
        Paul Phillips added a comment - Looks like all the javap internals changed in java7.
        Hide
        DaveScala added a comment -

        Same with Scala 2.9.1.final and Java 1.7.0_01

        Show
        DaveScala added a comment - Same with Scala 2.9.1.final and Java 1.7.0_01
        Hide
        Mike Slinn added a comment -

        Are there plans to fix this?

        Show
        Mike Slinn added a comment - Are there plans to fix this?
        Show
        A. P. Marki added a comment - https://github.com/scala/scala/pull/1637 unconflicted in https://github.com/scala/scala/pull/1751

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development