i tried to test my first few test to check if i do it correct. apperntly i did something wrong because buildbot send me this
--> test compile-for-public-daily-parser
Error while compiling with exit status 1
src/uri/tests/SimpleTests.java:75: error: cannot find symbol
Uri uri =UriParserFactory.create("scheme://").parse();
symbol: class Uri
location: class SimpleTests
How do i handle this?
Second i get the warning "SimpleTests.java is a non-project file, only syntax errors are reported Java (16)
This might be true. But this suggests, that one of your provided tests should have run into the same error since you used
“Host host =UriParserFactory.create(uri:“scheme://188.8.131.52”.parse().getHost();”
but .getHost() is defined in Uri.java. Even if this is not relevant for now it might be later and at least it might be interesting to know.
If Uri is not included, the symbols from Uri.java like the type Uri are not available.
But Java knows UriParserFactory which knows Uri. Therefore, Java knows the Uri methods and allows you to use them.
The reason why it does not load the symbols is to avoid namespace cluttering where all symbols are loaded and maybe similar names or equivalent names shadow each other / get confused.