Skip to content

Add JDK 9 constant types to the ClassfileParser #8595

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

Merged
merged 1 commit into from
Dec 12, 2019

Conversation

nevillelyh
Copy link

Fixes scala/bug#11635

Occasionally the compiler tries to parse the class files from the classpath. This happens, for example, during scaladoc comment referencing a class name java.time.Instant. This would cause error in JDK11 because it includes an unknown constant pool tag 9 (CONSTANT_Module). This updates the parser to skip it over.

Fixes scala/bug#11635

Occasionally the compiler tries to parse the class files from the classpath. This happens, for example, during scaladoc comment referencing a class name `java.time.Instant`. This would cause error in JDK11 because it includes an unknown constant pool tag 9 (CONSTANT_Module). This updates the parser to skip it over.
@scala-jenkins scala-jenkins added this to the 2.12.11 milestone Dec 12, 2019
@nevillelyh nevillelyh changed the base branch from 2.12.x to 2.11.x December 12, 2019 15:16
@nevillelyh
Copy link
Author

This is a backport of #8289 for 2.11 branch. I submitted for 2.12 initially by mistake. Can someone update the milestone please?

@SethTisue SethTisue modified the milestones: 2.12.11, 2.11.13 Dec 12, 2019
@SethTisue SethTisue requested a review from eed3si9n December 12, 2019 15:46
Copy link
Member

@eed3si9n eed3si9n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@SethTisue SethTisue added the release-notes worth highlighting in next release notes label Dec 12, 2019
@SethTisue
Copy link
Member

Not sure if our Jenkins is no longer set up to validate 2.11.x PRs, or if Scabot is just confused because of the branch switch.

Regardless, Travis-CI is green, that's good enough for me. (I did check https://travis-ci.org/scala/scala/jobs/624195753 to make sure the new test actually ran.)

@SethTisue SethTisue merged commit 2e2f65a into scala:2.11.x Dec 12, 2019
@nevillelyh nevillelyh deleted the neville/constant-pool branch December 12, 2019 19:57
SethTisue added a commit to scala/scala3 that referenced this pull request Jan 30, 2024
forward-port of scala/scala#10675 and scala/scala#8595
references scala/bug#12396 and scala/bug#11635
fixes #19527 ("bad constant pool tag 17")
also fixes unreported potential "bad constant pool tag 19" and "bad constant pool tag 20" errors
tgodzik pushed a commit to tgodzik/scala3 that referenced this pull request Apr 30, 2025
forward-port of scala/scala#10675 and scala/scala#8595
references scala/bug#12396 and scala/bug#11635
fixes scala#19527 ("bad constant pool tag 17")
also fixes unreported potential "bad constant pool tag 19" and
"bad constant pool tag 20" errors
tgodzik pushed a commit to scala/scala3 that referenced this pull request May 1, 2025
forward-port of scala/scala#10675 and scala/scala#8595
references scala/bug#12396 and scala/bug#11635
fixes #19527 ("bad constant pool tag 17")
also fixes unreported potential "bad constant pool tag 19" and
"bad constant pool tag 20" errors
tgodzik pushed a commit to scala/scala3-lts that referenced this pull request May 5, 2025
forward-port of scala/scala#10675 and scala/scala#8595
references scala/bug#12396 and scala/bug#11635
fixes scala#19527 ("bad constant pool tag 17")
also fixes unreported potential "bad constant pool tag 19" and
"bad constant pool tag 20" errors
tgodzik added a commit to scala/scala3-lts that referenced this pull request May 5, 2025
forward-port of scala/scala#10675 and scala/scala#8595
references scala/bug#12396 and scala/bug#11635
fixes scala#19527 ("bad constant pool tag 17")
also fixes unreported potential "bad constant pool tag 19" and
"bad constant pool tag 20" errors

[Cherry-picked 26852de][modified]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-notes worth highlighting in next release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants