Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManoj Palat2017-04-20 04:32:03 +0000
committerManoj Palat2017-04-20 09:18:00 +0000
commitf7608e255b7a2e7cde81de854a6575f0fb055925 (patch)
tree1a08b6eb3bcbce77b30aed329900cb1a8abef604
parent0ccfa2eb28a3895db659c4621451558ebe515ba0 (diff)
downloadeclipse.jdt.core-f7608e255b7a2e7cde81de854a6575f0fb055925.tar.gz
eclipse.jdt.core-f7608e255b7a2e7cde81de854a6575f0fb055925.tar.xz
eclipse.jdt.core-f7608e255b7a2e7cde81de854a6575f0fb055925.zip
Fix for bug 515484 [1.9] [dom ast] ast not generated for
module-info.class
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/BasicCompilationUnit.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/BasicCompilationUnit.java b/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/BasicCompilationUnit.java
index ed46eb21f0..7b9983c598 100644
--- a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/BasicCompilationUnit.java
+++ b/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/BasicCompilationUnit.java
@@ -119,7 +119,7 @@ public char[] getMainTypeName() {
int start = CharOperation.lastIndexOf('/', this.fileName) + 1;
if (start == 0 || start < CharOperation.lastIndexOf('\\', this.fileName))
start = CharOperation.lastIndexOf('\\', this.fileName) + 1;
- int separator = CharOperation.indexOf('|', this.fileName) + 1;
+ int separator = CharOperation.lastIndexOf('|', this.fileName) + 1;
if (separator > start) // case of a .class file in a default package in a jar
start = separator;

Back to the top