Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve handling of java/lang/System entry points in CG generation #241

Draft
wants to merge 10 commits into
base: develop
Choose a base branch
from
Prev Previous commit
Next Next commit
Fix formatting issue
  • Loading branch information
johannesduesing committed Nov 29, 2024
commit 9d29f26197108bb749c3b2f08aa6c4374e30cacf
Original file line number Diff line number Diff line change
Expand Up @@ -327,12 +327,12 @@ class InstantiatedTypesAnalysisScheduler(
// set for 'ExternalWorld' should take care of making these types accessible.
def initializeSystemField(fieldName: String): Unit = {
p.classFile(ObjectType.System).foreach { systemCf =>
systemCf.findField(fieldName).foreach { systemField =>
if(systemField.fieldType.isReferenceType) {
val declaredField = declaredFields(systemField)
initialize(selectSetEntity(declaredField), UIDSet(systemField.fieldType.asReferenceType))
}
}
systemCf.findField(fieldName).foreach { systemField =>
if (systemField.fieldType.isReferenceType) {
val declaredField = declaredFields(systemField)
initialize(selectSetEntity(declaredField), UIDSet(systemField.fieldType.asReferenceType))
}
}
}
}

Expand Down