Skip to content

Commit a51c7f1

Browse files
authored
Strange test failures in compiler.apt.tests #3930 (#3934)
ElementsImpl9 should supply module to LookupEnvironment to get member types. #3934
1 parent 7b0499f commit a51c7f1

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed
20 Bytes
Binary file not shown.

org.eclipse.jdt.compiler.apt.tests/processors8/org/eclipse/jdt/compiler/apt/tests/processors/elements/BaseElementProcessor.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2020, 2021 IBM Corporation.
2+
* Copyright (c) 2020, 2025 IBM Corporation.
33
*
44
* This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License 2.0
@@ -110,12 +110,11 @@ protected boolean invokeTestMethods(Map<String, String> options) throws Throwabl
110110
protected abstract void testAll() throws AssertionFailedError, IOException;
111111

112112
public void reportError(String value) {
113-
throw new AssertionFailedError(value);
113+
throw new AssertionFailedError(value + " (Binary mode= " + isBinaryMode + ")");
114114
}
115115

116116
public void reportError(Throwable ex) {
117117
String trace = getExceptionStackTrace(ex);
118-
//throw new AssertionFailedError(trace + " (Binary mode= " + isBinaryMode + ")");
119118
super.reportError(trace);
120119
}
121120

org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/apt/model/ElementsImpl9.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2006, 2024 BEA Systems, Inc. and others
2+
* Copyright (c) 2006, 2025 BEA Systems, Inc. and others
33
*
44
* This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License 2.0
@@ -86,7 +86,7 @@ private TypeElement getTypeElement(final char[][] compoundName, ModuleBinding mB
8686
for (int i = 0; i < topLevelSegments; ++i) {
8787
topLevelName[i] = compoundName[i];
8888
}
89-
topLevelBinding = le.getType(topLevelName);
89+
topLevelBinding = le.getType(topLevelName, mBinding);
9090
if (null != topLevelBinding) {
9191
break;
9292
}

0 commit comments

Comments
 (0)