mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
skip locations with lineNumber==1 to fix GWT debugging
This commit is contained in:
@@ -285,8 +285,11 @@ public class PositionManagerImpl implements PositionManager {
|
||||
int rangeEnd = Integer.MIN_VALUE;
|
||||
for (Location location : fromClass.allLineLocations()) {
|
||||
final int lnumber = location.lineNumber();
|
||||
if (lnumber < 1) {
|
||||
continue; // should be a native method, skipping
|
||||
if (lnumber <= 1) {
|
||||
// should be a native method, skipping
|
||||
// sometimes compiler generates location where line number is exactly 1 (e.g. GWT)
|
||||
// such locations are hardly correspond to real lines in code, so skipping them too
|
||||
continue;
|
||||
}
|
||||
final Method method = location.method();
|
||||
if (method == null || (canGetSynthetic && method.isSynthetic()) || method.isBridge()) {
|
||||
|
||||
Reference in New Issue
Block a user