API change request (RT-23413)
Greg Brown
greg.x.brown at oracle.com
Fri Jul 20 10:10:23 PDT 2012
> Right, so the place where somebody would get tripped up by this change is if they use the same FXMLLoader instance for loading multiple different FXML files, is that right?
Right. But that would only happen if a) a loader instance was re-used, which is uncommon and b) the second document referred to a class with the same name but different package than a class referenced by the first document (also uncommon).
> One other thing I just thought of right this moment -- what if we auto-cleared the imports when calling load on a different URL than was used the last time?
That would work, but I don't think there's much harm in simply preserving the imports. If you really want to make sure they are cleared, you can either use a new loader instance or call clearImports().
More information about the openjfx-dev
mailing list