Skip to content
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

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

Closed
scabug opened this issue Jul 5, 2012 · 6 comments
Closed

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

scabug opened this issue Jul 5, 2012 · 6 comments

Comments

@scabug
Copy link

@scabug scabug commented Jul 5, 2012

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

@scabug
Copy link
Author

@scabug scabug commented Jul 5, 2012

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

@scabug
Copy link
Author

@scabug scabug commented May 17, 2013

@paulp said:
Not enough to go on, and possibly overtaken by events.

@scabug
Copy link
Author

@scabug scabug commented May 17, 2013

@som-snytt said:
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!"

@scabug
Copy link
Author

@scabug scabug commented Oct 18, 2013

@som-snytt said (edited on Oct 18, 2013 6:00:15 PM UTC):
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.

@scabug
Copy link
Author

@scabug scabug commented Oct 18, 2013

@som-snytt said:
scala/scala#3052

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

@scabug
Copy link
Author

@scabug scabug commented Oct 18, 2013

@som-snytt said:
Supplemented by

scala/scala#3053

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

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

Successfully merging a pull request may close this issue.

None yet
2 participants