dev@javaserverfaces.java.net

[jsf 2.1 branch] cannot compile HtmlDoctype class

From: Leonardo Uribe <lu4242_at_gmail.com>
Date: Wed, 3 Nov 2010 18:17:44 -0500

Hi

I was working on some stuff in jsf 2.1 branch, and after a checkout I see
the following messages:

compile:
    [javac] Compiling 51 source files to
D:\workspace\ri\trunk\jsf-api\build\classes
    [javac]
D:\workspace\ri\trunk\jsf-api\build\generate\javax\faces\component\html\HtmlDoctype.java:80:
<identifier> expected
    [javac] protected enum PropertyKeys {
    [javac] ^
    [javac]
D:\workspace\ri\trunk\jsf-api\build\generate\javax\faces\component\html\HtmlDoctype.java:81:
',', '}', or ';' expected
    [javac] public,
    [javac] ^
    [javac]
D:\workspace\ri\trunk\jsf-api\build\generate\javax\faces\component\html\HtmlDoctype.java:81:
'}' expected
    [javac] public,
    [javac] ^
    [javac]
D:\workspace\ri\trunk\jsf-api\build\generate\javax\faces\component\html\HtmlDoctype.java:82:
<identifier> expected
    [javac] rootElement,
    [javac] ^
    [javac]
D:\workspace\ri\trunk\jsf-api\build\generate\javax\faces\component\html\HtmlDoctype.java:83:
<identifier> expected
    [javac] system,
    [javac] ^
    [javac]
D:\workspace\ri\trunk\jsf-api\build\generate\javax\faces\component\html\HtmlDoctype.java:86:
invalid method declaration; return type required
    [javac] PropertyKeys(String toString) { this.toString =
toString; }
    [javac] ^
    [javac]
D:\workspace\ri\trunk\jsf-api\build\generate\javax\faces\component\html\HtmlDoctype.java:87:
invalid method declaration; return type required
    [javac] PropertyKeys() { }
    [javac] ^
    [javac]
D:\workspace\ri\trunk\jsf-api\build\generate\javax\faces\component\html\HtmlDoctype.java:99:
class, interface, or enum expected
    [javac] public java.lang.String getPublic() {
    [javac] ^
    [javac]
D:\workspace\ri\trunk\jsf-api\build\generate\javax\faces\component\html\HtmlDoctype.java:100:
class, interface, or enum expected
    [javac] return (java.lang.String)
getStateHelper().eval(PropertyKeys.public);

[javac]
^
    [javac]
D:\workspace\ri\trunk\jsf-api\build\generate\javax\faces\component\html\HtmlDoctype.java:102:
class, interface, or enum expected
    [javac] }
    [javac] ^
    [javac]
D:\workspace\ri\trunk\jsf-api\build\generate\javax\faces\component\html\HtmlDoctype.java:107:
class, interface, or enum expected
    [javac] public void setPublic(java.lang.String _public) {
    [javac] ^
    [javac]
D:\workspace\ri\trunk\jsf-api\build\generate\javax\faces\component\html\HtmlDoctype.java:108:
class, interface, or enum expected
    [javac] getStateHelper().put(PropertyKeys.public, _public);
    [javac] ^
    [javac]
D:\workspace\ri\trunk\jsf-api\build\generate\javax\faces\component\html\HtmlDoctype.java:109:
class, interface, or enum expected
    [javac] handleAttribute("public", _public);
    [javac] ^
    [javac]
D:\workspace\ri\trunk\jsf-api\build\generate\javax\faces\component\html\HtmlDoctype.java:110:
class, interface, or enum expected
    [javac] }
    [javac] ^
    [javac]
D:\workspace\ri\trunk\jsf-api\build\generate\javax\faces\component\html\HtmlDoctype.java:119:
class, interface, or enum expected
    [javac] public java.lang.String getRootElement() {
    [javac] ^
    [javac]
D:\workspace\ri\trunk\jsf-api\build\generate\javax\faces\component\html\HtmlDoctype.java:122:
class, interface, or enum expected
    [javac] }
    [javac] ^
    [javac]
D:\workspace\ri\trunk\jsf-api\build\generate\javax\faces\component\html\HtmlDoctype.java:127:
class, interface, or enum expected
    [javac] public void setRootElement(java.lang.String rootElement) {
    [javac] ^
    [javac]
D:\workspace\ri\trunk\jsf-api\build\generate\javax\faces\component\html\HtmlDoctype.java:129:
class, interface, or enum expected
    [javac] handleAttribute("rootElement", rootElement);
    [javac] ^
    [javac]
D:\workspace\ri\trunk\jsf-api\build\generate\javax\faces\component\html\HtmlDoctype.java:130:
class, interface, or enum expected
    [javac] }
    [javac] ^
    [javac]
D:\workspace\ri\trunk\jsf-api\build\generate\javax\faces\component\html\HtmlDoctype.java:139:
class, interface, or enum expected
    [javac] public java.lang.String getSystem() {
    [javac] ^
    [javac]
D:\workspace\ri\trunk\jsf-api\build\generate\javax\faces\component\html\HtmlDoctype.java:142:
class, interface, or enum expected
    [javac] }
    [javac] ^
    [javac]
D:\workspace\ri\trunk\jsf-api\build\generate\javax\faces\component\html\HtmlDoctype.java:147:
class, interface, or enum expected
    [javac] public void setSystem(java.lang.String system) {
    [javac] ^
    [javac]
D:\workspace\ri\trunk\jsf-api\build\generate\javax\faces\component\html\HtmlDoctype.java:149:
class, interface, or enum expected
    [javac] handleAttribute("system", system);
    [javac] ^
    [javac]
D:\workspace\ri\trunk\jsf-api\build\generate\javax\faces\component\html\HtmlDoctype.java:150:
class, interface, or enum expected
    [javac] }
    [javac] ^
    [javac]
D:\workspace\ri\trunk\jsf-api\build\generate\javax\faces\component\html\HtmlDoctype.java:155:
class, interface, or enum expected
    [javac] if (setAttributes == null) {
    [javac] ^
    [javac]
D:\workspace\ri\trunk\jsf-api\build\generate\javax\faces\component\html\HtmlDoctype.java:157:
class, interface, or enum expected
    [javac] if (cname != null &&
cname.startsWith(OPTIMIZED_PACKAGE)) {
    [javac] ^
    [javac]
D:\workspace\ri\trunk\jsf-api\build\generate\javax\faces\component\html\HtmlDoctype.java:159:
class, interface, or enum expected
    [javac]
this.getAttributes().put("javax.faces.component.UIComponentBase.attributesThatAreSet",
setAttributes);
    [javac] ^
    [javac]
D:\workspace\ri\trunk\jsf-api\build\generate\javax\faces\component\html\HtmlDoctype.java:160:
class, interface, or enum expected
    [javac] }
    [javac] ^
    [javac]
D:\workspace\ri\trunk\jsf-api\build\generate\javax\faces\component\html\HtmlDoctype.java:165:
class, interface, or enum expected
    [javac] if (ve == null) {
    [javac] ^
    [javac]
D:\workspace\ri\trunk\jsf-api\build\generate\javax\faces\component\html\HtmlDoctype.java:167:
class, interface, or enum expected
    [javac] }
    [javac] ^
    [javac]
D:\workspace\ri\trunk\jsf-api\build\generate\javax\faces\component\html\HtmlDoctype.java:170:
class, interface, or enum expected
    [javac] }
    [javac] ^
    [javac] 31 errors

BUILD FAILED

Could someone please help with this issue.

regards,

Leonardo Uribe