Skip to content

Commit fc025f7

Browse files
committed
Consider JDK classes to also be extensions.
1 parent 8878d73 commit fc025f7

File tree

1 file changed

+2
-1
lines changed
  • edu.cuny.hunter.streamrefactoring.core/src/edu/cuny/hunter/streamrefactoring/core/wala

1 file changed

+2
-1
lines changed

edu.cuny.hunter.streamrefactoring.core/src/edu/cuny/hunter/streamrefactoring/core/wala/AnalysisUtils.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ private static boolean isExtension(Atom classLoaderName) {
4545
}
4646

4747
public static boolean isJDKClass(IClass klass) {
48-
return isPrimordial(klass.getClassLoader().getName());
48+
Atom classLoaderName = klass.getClassLoader().getName();
49+
return isPrimordial(classLoaderName) || isExtension(classLoaderName);
4950
}
5051

5152
private static boolean isPrimordial(Atom classLoaderName) {

0 commit comments

Comments
 (0)