STJ: Can the code generator emit errors or only warnings? #101805
-
This is more a question of curiosity and not really a problem nor a cry for help. I stumbled over the STJ code gen warning This leads me to asking this question here: Is the STJ code gen able to emit errors? (I am not talking about warnings being treated as errors, i am asking about actual errors.) If STJ code gen is not emitting any errors ever, what is the reason behind the STJ code gen only emitting warnings, even for warnings (like SYSLIB1031) where there appears to be no plausible situation when ignoring such a warning would not lead to problems or where ignoring the warning would equate with parts of the code written by the programmer just being ignored? (Side note: The reason why SYSLIB1031 being a warning rubs me the wrong way is because it's one thing for a warning to effectively be "What you wrote is problematic. If you insist on keeping that code , alright, you're the boss...", but it's an entirely different thing for a warning - like SYSLIB1031 - to be like "What you wrote is problematic. I am just going to pretend you didn't write that...".) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
@eiriktsarpalis |
Beta Was this translation helpful? Give feedback.
My understanding is that it was made a warning because
SYSLIB1031
will necessarily result in other compiler errors being emitted because of the duplicate properties. I agree with your reasoning that this should have been made an error, but I'm not sure if this wouldn't be considered a breaking change or worth the effort.