-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
8325936: jshell - crash on 'new Object().""' #17876
8325936: jshell - crash on 'new Object().""' #17876
Conversation
👋 Welcome back hgreule! A progress list of the required criteria for merging this PR into |
// key: compiler.err.cant.resolve.location.args | ||
// key: compiler.misc.location |
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.
I think this error was rather confusing, e.g.
Simple2.java:3: error: cannot find symbol
System.out.println(e."\{e}");
^
symbol: method process(StringTemplate)
location: class String
It mentions the process
method while it's not visible in the code. It also always came directly after e.g.
Simple2.java:3: error: not a processor type: String
System.out.println(e."\{e}");
so it basically just caused 2 errors when there actually only is 1.
resultType = syms.objectType; | ||
} | ||
} else { | ||
if (interfaceType == null) { |
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.
if (interfaceType == null) { | |
if (interfaceType == null) { |
❗ This change is not yet ready to be integrated. |
@SirYwell This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration! |
This fixes a crash in jshell when the target of a StringTemplate is not a processor. We only look up the
process
method if the type is actually a processor. The added test case fails without that fix.Please let me know what you think of this fix, and if there are things that should be changed.
Progress
Issue
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/17876/head:pull/17876
$ git checkout pull/17876
Update a local copy of the PR:
$ git checkout pull/17876
$ git pull https://git.openjdk.org/jdk.git pull/17876/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 17876
View PR using the GUI difftool:
$ git pr show -t 17876
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/17876.diff
Webrev
Link to Webrev Comment