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
Error printed in spotbugs output #11453
Comments
The problematic code is public final TextContext text() throws RecognitionException {
TextContext _localctx = new TextContext(_ctx, getState());
enterRule(_localctx, 148, RULE_text);
int _la;
try {
int _alt;
enterOuterAlt(_localctx, 1);
{
setState(2064);
_errHandler.sync(this);
_alt = 1;
do {
switch (_alt) {
case 1:
{
{
setState(2062);
_la = _input.LA(1);
if ( !(_la==WS || _la==CHAR) ) {
_errHandler.recoverInline(this);
}
else {
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
_errHandler.reportMatch(this);
consume();
}
_la = _input.LA(1);
if ((_la != WS) && (_la != CHAR)) return _localctx;
else if (_alt == 1) continue;
}
}
break;
default:
throw new NoViableAltException(this);
}
setState(2066);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,181,_ctx);
} while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER );
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
} |
Related Spotbugs issue: spotbugs/spotbugs#1919 |
still issue , noted during release build |
Issue still valid. |
More details: the root case is the method
|
I'm trying to set up minimal repro and found another (maybe unrelated) issue. |
Finally got a repro: spotbugs/spotbugs#2019 |
@pbludov Unrelated to the issue, but how did you print the bytecode for the issue you made in spotbugs? |
I used two commands to prepare the repro: $ javac -g TestClass.java Option $ javap -c -l TestClass.class To produce the bytecode dump. But the bytecode for the Spotbugs issue was created with IDEA. There is option "Show bytecode" in the "View" menu. See this topic for more information. |
build is not failed.
The text was updated successfully, but these errors were encountered: