Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
Reviewed
Description
There's a bug in the FPGA plugin which is intended to find the localized "aocx" file:
... if (localizedResources != null) { Optional<Path> aocxPath = localizedResources .keySet() .stream() .filter(path -> matchesIpid(path, id)) .findFirst(); if (aocxPath.isPresent()) { ipFilePath = aocxPath.get().toUri().toString(); LOG.debug("Found: " + ipFilePath); } } else { LOG.warn("Localized resource is null!"); } return ipFilePath; } private boolean matchesIpid(Path p, String id) { return p.getName().toLowerCase().equals(id.toLowerCase()) && p.getName().endsWith(".aocx"); }
The method matchesIpid() works incorrecty: the id argument is the expected filename, but without the extension. Therefore the equals() comparison will always be false.