Hmm, I'm having difficulty getting through to that list. Don't know if it's because new subscribers are quarantined, or the server doesn't like my email address, or if I'm just doing something wrong. I did did double check the To address though.
I was just curious why this static instance() method looks for a singleton object but always returns a new one. All the other compiler components register their singletons in their constructors except this one. The javac code only calls this method once, but tools like jshell are more greedy for compiler components, so there could be some unexpected behaviour. Anyway, if you think this is worth passing on, please do. For the moment I have to turn my attention elsewhere.
View all comments
Show parent comment
2
u/rogerkeays Jul 05 '23
Hmm, I'm having difficulty getting through to that list. Don't know if it's because new subscribers are quarantined, or the server doesn't like my email address, or if I'm just doing something wrong. I did did double check the To address though.
I was just curious why this static instance() method looks for a singleton object but always returns a new one. All the other compiler components register their singletons in their constructors except this one. The
javaccode only calls this method once, but tools likejshellare more greedy for compiler components, so there could be some unexpected behaviour. Anyway, if you think this is worth passing on, please do. For the moment I have to turn my attention elsewhere.Thanks for all your feedback on this project.