You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have the URL to resource like jar:file://path/to/myjar.jar!/main/main.jar!/com/some/dao/Dao.sql.stg - I've got this using single jar app loader. I pass this URL to corresponding costructor of STGroupFile then internally in load() I see
loadGroupFile("", url.toString());
So url is converted to String via toString() and then internally in loadGroupFile result is passed to new URL(..):
URL f = new URL(fileName);
ANTLRInputStream fs = new ANTLRInputStream(f.openStream(), encoding);
In my case this new URL is of incorrect format and opening stream leads to an exception. I think the issue is in calling URL.toString() -> 'new URL()' instead of obtaining stream directrly from URL via
resource.openConnection().getInputStream()
Thanks
The text was updated successfully, but these errors were encountered:
I have the
URL
to resource likejar:file://path/to/myjar.jar!/main/main.jar!/com/some/dao/Dao.sql.stg
- I've got this using single jar app loader. I pass thisURL
to corresponding costructor ofSTGroupFile
then internally inload()
I seeSo url is converted to
String
viatoString()
and then internally inloadGroupFile
result is passed tonew URL(..)
:In my case this new
URL
is of incorrect format and opening stream leads to an exception. I think the issue is in callingURL.toString()
-> 'new URL()' instead of obtaining stream directrly fromURL
viaThanks
The text was updated successfully, but these errors were encountered: