This template is within the scope of WikiProject Java, a collaborative effort to improve the coverage of Java on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.JavaWikipedia:WikiProject JavaTemplate:WikiProject JavaJava articles
This template should be improved to better support books/PDFs. For example, if you try to create a PDF file from book Wikipedia:Books/Data structures, then article on Stack (data structure) with the following fragment:
...Java's library contains a Stack class that is a specialization of Vector. This could be considered a design flaw because the inherited get() method from Vector ignores the LIFO constraint of the Stack.
will be almost unreadable in PDF:
Java's library contains a Stack (http:/ / java. sun. com/
javase/ 6/ docs/ api/ java/ util/ Stack. html) class that is a specialization of
Vector (http:/ / java. sun. com/ javase/ 6/ docs/ api/ java/ util/ Vector.
html). This could be considered a design flaw because the inherited get() method from
Vector (http:/ / java. sun. com/ javase/ 6/ docs/ api/ java/ util/ Vector.
html) ignores the LIFO constraint of the Stack (http:/ / java. sun. com/ javase/ 6/
docs/ api/ java/ util/ Stack. html).
Java 8 was just released. I did a quick fix to point to the Java 8 documentation, but I found out that Oracle's HTML anchors now have the parenthesis characters '(' and ')' replaced with dashes like '-'. Could someone rewrite the template to accommodate this change? I reverted back to the Java 7 documentation to avoid this damage until someone can rewrite this code to substitute parenthesis with dashes. Jesse Viviano (talk) 01:51, 20 March 2014 (UTC)[reply]
Jesse, could you please give an example of a page where this happens? I've went through quite a few transclusions and can't find one where this error happens. APerson (talk!) 02:43, 29 July 2015 (UTC)[reply]
The home url, template, and documentation are now updated to Java 10 and any links following the examples provided in the documentation will work correctly. However, any links which include the %20s required in previous doc versions (or any links which used the -s from Java 8 and 9) will not link correctly. There are only 114 pages (at the time of this writing) using this template, so maybe it's better to update any usages rather than try to munge the member strings? Squid314 (talk) 22:21, 11 April 2018 (UTC)[reply]