-
Notifications
You must be signed in to change notification settings - Fork 84
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
Avoid java.net.URL #443
Avoid java.net.URL #443
Conversation
e11d455
to
96640f7
Compare
@adpi2 can you review this PR? I rebase after your changes were merged |
96640f7
to
861b8aa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
The test failures are normal? |
Thanks for rerunning the test @adpi2. |
I don't know why they appear as cancelled. But I think they were green before so let's just merge the PR. |
I guess we haven't bumped LM in a while in sbt/sbt, so I just realized that when trying to use this, we get [info] [info] welcome to sbt 2.0.0-alpha12-SNAPSHOT (Azul Systems, Inc. Java 1.8.0_402)
[info] [info] loading project definition from /private/var/folders/hg/2602nfrs2958vnshglyl3srw0000gn/T/sbt_3624414e/project
[info] [error] java.lang.ClassCastException: java.net.URL cannot be cast to java.net.URI
[info] [error] at sjsonnew.IsoString$$anon$1.to(IsoString.scala:26)
[info] [error] at sjsonnew.IsoFormats$$anon$2.write(IsoFormats.scala:31)
[info] [error] at sjsonnew.StandardFormats$OptionFormat.write(StandardFormats.scala:37)
[info] [error] at sjsonnew.StandardFormats$OptionFormat.addField(StandardFormats.scala:44)
[info] [error] at sjsonnew.StandardFormats$OptionFormat.addField(StandardFormats.scala:40)
[info] [error] at sjsonnew.Builder.addField(Builder.scala:43)
[info] [error] at sbt.librarymanagement.ArtifactFormats$$anon$1.write(ArtifactFormats.scala:36)
[info] [error] at sbt.librarymanagement.ArtifactFormats$$anon$1.write(ArtifactFormats.scala:29) |
I was using sbt without internet connection and noticed that
update
task taking a lot of time (around 30s). I did a thread dump with aSigQuit
(Ctrl
+\
) and noticed that the thread was blocked becausejava.net.URL#equals
blocks:In this PR I replaced
java.net.URL
withjava.net.URI
but kept the field names(i.e I didn't renameurl
touri
, orbrowseUrl
tobrowseUri
)