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

error while loading class file is broken with -optimize #8043

Closed
scabug opened this issue Dec 7, 2013 · 4 comments
Closed

error while loading class file is broken with -optimize #8043

scabug opened this issue Dec 7, 2013 · 4 comments
Assignees

Comments

@scabug
Copy link

scabug commented Dec 7, 2013

checkout https://github.com/OlegYch/jclouds-scala-bug
sbt compile

[info] Compiling 1 Scala source to D:\Distrib\Coding\Java\scala\jclouds-scala-bug\target\scala-2.10\classes...
[warn] Class org.apache.http.client.HttpClient not found - continuing with a stub.
[error] error while loading FilesClient, class file 'D:\Distrib\Coding\Java\scala\jclouds-scala-bug\lib\java-cloudfiles.jar(com/rackspacecloud/client/cloudfiles/FilesClient.class)' is broken
[error] (class java.lang.NullPointerException/null)
[error] D:\Distrib\Coding\Java\scala\jclouds-scala-bug\test.scala:4: com.rackspacecloud.client.cloudfiles.FilesClient does not have a constructor
[error]   private lazy val client = new FilesClient(???, ???, ???)
[error]                             ^
[warn] one warning found
[error] two errors found
[error] (compile:compile) Compilation failed
@scabug
Copy link
Author

scabug commented Dec 7, 2013

Imported From: https://issues.scala-lang.org/browse/SI-8043?orig=1
Reporter: @OlegYch
Affected Versions: 2.10.3
Duplicates #7439
Attachments:

@scabug
Copy link
Author

scabug commented Dec 7, 2013

@OlegYch said:
-optimize apparently only makes a difference when log4j classes are missing, if httpclient classes are missing it fails even without -optimize

@scabug scabug closed this as completed Dec 7, 2013
@scabug
Copy link
Author

scabug commented Dec 7, 2013

@retronym said:
Duplicate of #7439

@scabug
Copy link
Author

scabug commented Dec 7, 2013

@retronym said:
BTW, I'm backporting the fix for #7439 to 2.10.4

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

No branches or pull requests

2 participants