jtidy-0_pre20010801 doesn't compile under java 1.5.0_04 because it uses enum as a variable name, which is a new reserved word and this java compile doesn't support treating the source as 1.4 jtidy seems to be pretty unmaintained so possible solutions are have java 1.4.2 installed too which sounds bad or fix jtidy. This patch applies in the src/ directory of the build and just renames the variable, allowing it to compile successfully under java 1.5, although there are still a number of warnings. I couldn't find any docs on how people like patches at gentoo, err, so here it just is. If you want it differently, let me know. I also just kind of guessed at what to put for severity/priority. Hope I didn't ruin anyones life. Adam --- Patch Begins Here--- --- org/w3c/tidy/Configuration.java 2005-08-09 16:58:06.000000000 +0100 +++ org/w3c/tidy/Configuration.java 2005-08-09 16:58:38.000000000 +0100 @@ -123,10 +123,10 @@ public void addProps( Properties p ) { - Enumeration enum = p.propertyNames(); - while (enum.hasMoreElements()) + Enumeration en = p.propertyNames(); + while (en.hasMoreElements()) { - String key = (String) enum.nextElement(); + String key = (String) en.nextElement(); String value = p.getProperty(key); _properties.put(key, value); }
easyer to just -source 1.4 it
Isn't it worth putting that flag into the package in that case? java 1.5.0 complained that it couldn't do classic style java so I assumed it meant that it had been passed -source 1.4 but couldn't do it any more. Or at worst, how do I use that flag when I'm building the packages so I can actually build them on my machine, there are a couple more that produce the same bug.