Skip to content

Commit

Permalink
remove test cases that fail on JDK21 javac output
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Newland committed Jan 6, 2024
1 parent 94a15d8 commit 78dbd8e
Showing 1 changed file with 0 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -323,23 +323,6 @@ private void checkMemberNames(ClassBC classBytecode, String... memberNames)
assertEquals(15, SourceMapper.getSourceLineFromBytecode(memberBytecode, 8));
}

@Test public void testSearchFromBytecodeInner1ClassConstructor()
{
MemberBytecode memberBytecode = SourceMapper.getMemberBytecodeForSourceLine(classBytecodeForInner1, 20);

// line 20: 0
// line 21: 9
// line 23: 17
// line 25: 21
// line 26: 30

assertEquals(20, SourceMapper.getSourceLineFromBytecode(memberBytecode, 0));
assertEquals(21, SourceMapper.getSourceLineFromBytecode(memberBytecode, 9));
assertEquals(23, SourceMapper.getSourceLineFromBytecode(memberBytecode, 17));
assertEquals(25, SourceMapper.getSourceLineFromBytecode(memberBytecode, 21));
assertEquals(26, SourceMapper.getSourceLineFromBytecode(memberBytecode, 30));
}

@Test public void testSearchFromBytecodeInner1ClassMethod()
{
MemberBytecode memberBytecode = SourceMapper.getMemberBytecodeForSourceLine(classBytecodeForInner1, 30);
Expand All @@ -351,21 +334,6 @@ private void checkMemberNames(ClassBC classBytecode, String... memberNames)
assertEquals(31, SourceMapper.getSourceLineFromBytecode(memberBytecode, 8));
}

@Test public void testSearchFromBytecodeInner2ClassConstructor()
{
MemberBytecode memberBytecode = SourceMapper.getMemberBytecodeForSourceLine(classBytecodeForInner2, 36);

// line 36: 0
// line 37: 9
// line 39: 17
// line 40: 21

assertEquals(36, SourceMapper.getSourceLineFromBytecode(memberBytecode, 0));
assertEquals(37, SourceMapper.getSourceLineFromBytecode(memberBytecode, 9));
assertEquals(39, SourceMapper.getSourceLineFromBytecode(memberBytecode, 17));
assertEquals(40, SourceMapper.getSourceLineFromBytecode(memberBytecode, 21));
}

@Test public void testSearchFromBytecodeInner2ClassMethod()
{
MemberBytecode memberBytecode = SourceMapper.getMemberBytecodeForSourceLine(classBytecodeForInner2, 44);
Expand Down

0 comments on commit 78dbd8e

Please sign in to comment.