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

regression in SourceFile#lineContent: AIOOBE #8205

Closed
scabug opened this issue Jan 29, 2014 · 6 comments
Closed

regression in SourceFile#lineContent: AIOOBE #8205

scabug opened this issue Jan 29, 2014 · 6 comments
Assignees
Labels
Milestone

Comments

@scabug
Copy link

@scabug scabug commented Jan 29, 2014

[warn] v2.11.0-M8 failed, using closest available
Welcome to Scala version 2.11.0-20140117-031050-a5b0fc49e5 (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_37).
Type in expressions to have them evaluated.
Type :help for more information.

scala> reflect.internal.util.Position.offset(newSourceFile("  \n"), 1).lineContent
<console>:8: error: not found: value newSourceFile
              reflect.internal.util.Position.offset(newSourceFile("  \n"), 1).lineContent
                                                    ^

scala> :power
** Power User mode enabled - BEEP WHIR GYVE **
** :phase has been set to 'typer'.          **
** scala.tools.nsc._ has been imported      **
** global._, definitions._ also imported    **
** Try  :help, :vals, power.<tab>           **

scala> reflect.internal.util.Position.offset(newSourceFile("  \n"), 1).lineContent
res1: String = "  "

scala> reflect.internal.util.Position.offset(newSourceFile("  "), 1).lineContent
java.lang.ArrayIndexOutOfBoundsException: -2147483648
  at scala.reflect.internal.util.BatchSourceFile.notCRLF0$1(SourceFile.scala:139)

Thanks to @huitseeker for the report.

https://jenkins.scala-ide.org:8496/jenkins/job/scala-search-nightly-master-2.11/lastCompletedBuild/consoleFull

@scabug
Copy link
Author

@scabug scabug commented Jan 29, 2014

Imported From: https://issues.scala-lang.org/browse/SI-8205?orig=1
Reporter: @retronym
Affected Versions: 2.11.0-M8

@scabug
Copy link
Author

@scabug scabug commented Jan 29, 2014

@scabug scabug closed this Jan 29, 2014
@scabug
Copy link
Author

@scabug scabug commented Jan 29, 2014

@som-snytt said:
Follow-up and further penance:

scala/scala#3429

@scabug
Copy link
Author

@scabug scabug commented Feb 10, 2014

@gkossakowski said:
It looks like scala/scala#3430 fixed this in 2.10.x (I updated fix version field).

@scabug
Copy link
Author

@scabug scabug commented Feb 10, 2014

@som-snytt said:
The regression was in 2.11.0-M8; just a test went into 2.10.x; so that contributes to peace of mind. I can't find the umbrella issue for "Unquiet mind in 2.10".

@scabug
Copy link
Author

@scabug scabug commented Feb 10, 2014

@gkossakowski said:
Ah, I see now. Thanks for clarifying (I reverted my change to Fix version field).

@scabug scabug added the blocker label Apr 7, 2017
@scabug scabug added this to the 2.11.0-RC1 milestone Apr 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants