Bug 387746 - Potential deadlock in Rhino debugger
diff --git a/bundles/org.eclipse.wst.jsdt.debug.rhino.debugger/src/org/eclipse/wst/jsdt/debug/internal/rhino/debugger/RhinoDebuggerImpl.java b/bundles/org.eclipse.wst.jsdt.debug.rhino.debugger/src/org/eclipse/wst/jsdt/debug/internal/rhino/debugger/RhinoDebuggerImpl.java
index d0afacd..7c0f676 100644
--- a/bundles/org.eclipse.wst.jsdt.debug.rhino.debugger/src/org/eclipse/wst/jsdt/debug/internal/rhino/debugger/RhinoDebuggerImpl.java
+++ b/bundles/org.eclipse.wst.jsdt.debug.rhino.debugger/src/org/eclipse/wst/jsdt/debug/internal/rhino/debugger/RhinoDebuggerImpl.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009, 2011 IBM Corporation and others All rights reserved. This
+ * Copyright (c) 2009, 2012 IBM Corporation and others All rights reserved. This
* program and the accompanying materials are made available under the terms of
* the Eclipse Public License v1.0 which accompanies this distribution, and is
* available at http://www.eclipse.org/legal/epl-v10.html
@@ -157,7 +157,7 @@
}
else {
//a totally new script is loaded
- id = scriptId();
+ id = new Long(currentScriptId++);
newscript.setId(id);
}
uriToScript.put(uri, newscript);
@@ -237,15 +237,6 @@
return null;
}
- /**
- * Returns the next script id to use
- *
- * @return the next id
- */
- synchronized Long scriptId() {
- return new Long(currentScriptId++);
- }
-
/*
* (non-Javadoc)
*