Unverified Commit 434a262b authored by Geertjan Wielenga's avatar Geertjan Wielenga Committed by GitHub
Browse files

Merge pull request #2763 from dbalek/dbalek/fix-for-nb-javac-tests

Fixing failing nb-javac tests.
parents 0536335a 40ad0491
......@@ -1422,7 +1422,7 @@ public class CasualDiff {
// check that it is not enum constant. If so, match it in special way
if ((oldT.mods.flags & Flags.ENUM) != 0) {
JCModifiers mods = oldT.getModifiers();
int startPos = mods.pos != Position.NOPOS ? getOldPos(mods) : getOldPos(parent);
int startPos = mods.pos != Position.NOPOS ? getOldPos(mods) : getOldPos(oldT);
localPointer = diffAnnotationsLists(mods.getAnnotations(), newT.getModifiers().getAnnotations(), startPos, localPointer);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment