Bug 64136 - Console debug hyperlinking can't parse some anonymous inner class messages
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/console/JavaStackTraceHyperlink.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/console/JavaStackTraceHyperlink.java
index 195fcc3..f8ee389 100644
--- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/console/JavaStackTraceHyperlink.java
+++ b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/console/JavaStackTraceHyperlink.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
+ * Copyright (c) 2000, 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
@@ -151,6 +151,9 @@
String typeName = linkText.substring(0, index);
// remove the method name
index = typeName.lastIndexOf('.');
+ int innerClassIndex = typeName.lastIndexOf('$', index);
+ if (innerClassIndex != -1)
+ index = innerClassIndex;
if (index >= 0) {
typeName = typeName.substring(0, index);
}