New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
scabug opened this Issue Aug 22, 2011 · 5 comments

Comments

Projects
None yet
2 participants
@scabug
Copy link

scabug commented Aug 22, 2011

: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();
}

@scabug

This comment has been minimized.

Copy link

scabug commented Aug 22, 2011

Imported From: https://issues.scala-lang.org/browse/SI-4936?orig=1
Reporter: DaveScala (davescala)
Affected Versions: 2.9.0-1

@scabug

This comment has been minimized.

Copy link

scabug commented Nov 12, 2011

@paulp said:
Looks like all the javap internals changed in java7.

@scabug

This comment has been minimized.

Copy link

scabug commented Dec 5, 2011

DaveScala (davescala) said:
Same with Scala 2.9.1.final and Java 1.7.0_01

@scabug

This comment has been minimized.

Copy link

scabug commented Oct 5, 2012

Mike Slinn (mslinn) said:
Are there plans to fix this?

@scabug

This comment has been minimized.

Copy link

scabug commented Jan 6, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment