[ 
https://issues.apache.org/jira/browse/OFBIZ-5835?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gary Shi updated OFBIZ-5835:
----------------------------
    Description: 
Just tried JDK 7; but got the same errors:
------------------------
I replaced 1.6 with 1.8 and javac16 with javac18 in some xml files; but still 
got the same warning and error messsages as follows:
 
  [javac18] Compiling 11 source files to C:\Users\gys\Downloads\apache-ofbiz
-12.04.05 (1)\apache-ofbiz-12.04.05\applications\party\build\classes
  [javac18] warning: [options] bootstrap class path not set in conjunction with
-source 1.6
  [javac18] C:\Users\gys\Downloads\apache-ofbiz-12.04.05 (1)\apache-ofbiz-12
.04.05\applications\party\src\org\ofbiz\party\communication\CommunicationEventSe
rvices.java:139: error: cannot access DataResourceWorkerInterface
  [javac18]                     ByteBuffer dataContent = DataResourceWorker.getC
ontentAsByteBuffer(delegator, dataResource.getString("dataResourceId"), null, nu
ll, locale, null);
  [javac18]                                                                ^
  [javac18]   class file for org.ofbiz.widget.DataResourceWorkerInterface not fo
und
  [javac18] C:\Users\gys\Downloads\apache-ofbiz-12.04.05 (1)\apache-ofbiz-12
.04.05\applications\party\src\org\ofbiz\party\contact\ContactMechServices.java:1
056: warning: [deprecation] getDigestHash(String,String) in HashCrypt has been d
eprecated
  [javac18]                 verifyHash = HashCrypt.getDigestHash(Long.toString(r
andom), "MD5");
  [javac18]                                       ^
  [javac18] C:\Users\gys\Downloads\apache-ofbiz-12.04.05 (1)\apache-ofbiz-12
.04.05\applications\party\src\org\ofbiz\party\content\PartyContentWrapper.java:2
29: error: cannot access ContentWorkerInterface
  [javac18]             ContentWorker.renderContentAsText(dispatcher, delegator,
 partyContent.getString("contentId"), outWriter, inContext, locale, mimeTypeId,
null, null, false);
  [javac18]                          ^
  [javac18]   class file for org.ofbiz.widget.ContentWorkerInterface not found
  [javac18] 2 errors
  [javac18] 2 warnings

BUILD FAILED
C:\Users\gys\Downloads\apache-ofbiz-12.04.05 (1)\apache-ofbiz-12.04.05\build
.xml:217: The following error occurred while executing this line:
C:\Users\gys\Downloads\apache-ofbiz-12.04.05 (1)\apache-ofbiz-12.04.05\appli
cations\build.xml:67: The following error occurred while executing this line:
C:\Users\gys\Downloads\apache-ofbiz-12.04.05 (1)\apache-ofbiz-12.04.05\macro
s.xml:39: The following error occurred while executing this line:
C:\Users\gys\Downloads\apache-ofbiz-12.04.05 (1)\apache-ofbiz-12.04.05\commo
n.xml:91: Compile failed; see the compiler error output for details.

Bliss,
--G

  was:
I replaced 1.6 with 1.8 and javac16 with javac18 in some xml files; but still 
got the same warning and error messsages as follows:
 
  [javac18] Compiling 11 source files to C:\Users\gys\Downloads\apache-ofbiz
-12.04.05 (1)\apache-ofbiz-12.04.05\applications\party\build\classes
  [javac18] warning: [options] bootstrap class path not set in conjunction with
-source 1.6
  [javac18] C:\Users\gys\Downloads\apache-ofbiz-12.04.05 (1)\apache-ofbiz-12
.04.05\applications\party\src\org\ofbiz\party\communication\CommunicationEventSe
rvices.java:139: error: cannot access DataResourceWorkerInterface
  [javac18]                     ByteBuffer dataContent = DataResourceWorker.getC
ontentAsByteBuffer(delegator, dataResource.getString("dataResourceId"), null, nu
ll, locale, null);
  [javac18]                                                                ^
  [javac18]   class file for org.ofbiz.widget.DataResourceWorkerInterface not fo
und
  [javac18] C:\Users\gys\Downloads\apache-ofbiz-12.04.05 (1)\apache-ofbiz-12
.04.05\applications\party\src\org\ofbiz\party\contact\ContactMechServices.java:1
056: warning: [deprecation] getDigestHash(String,String) in HashCrypt has been d
eprecated
  [javac18]                 verifyHash = HashCrypt.getDigestHash(Long.toString(r
andom), "MD5");
  [javac18]                                       ^
  [javac18] C:\Users\gys\Downloads\apache-ofbiz-12.04.05 (1)\apache-ofbiz-12
.04.05\applications\party\src\org\ofbiz\party\content\PartyContentWrapper.java:2
29: error: cannot access ContentWorkerInterface
  [javac18]             ContentWorker.renderContentAsText(dispatcher, delegator,
 partyContent.getString("contentId"), outWriter, inContext, locale, mimeTypeId,
null, null, false);
  [javac18]                          ^
  [javac18]   class file for org.ofbiz.widget.ContentWorkerInterface not found
  [javac18] 2 errors
  [javac18] 2 warnings

BUILD FAILED
C:\Users\gys\Downloads\apache-ofbiz-12.04.05 (1)\apache-ofbiz-12.04.05\build
.xml:217: The following error occurred while executing this line:
C:\Users\gys\Downloads\apache-ofbiz-12.04.05 (1)\apache-ofbiz-12.04.05\appli
cations\build.xml:67: The following error occurred while executing this line:
C:\Users\gys\Downloads\apache-ofbiz-12.04.05 (1)\apache-ofbiz-12.04.05\macro
s.xml:39: The following error occurred while executing this line:
C:\Users\gys\Downloads\apache-ofbiz-12.04.05 (1)\apache-ofbiz-12.04.05\commo
n.xml:91: Compile failed; see the compiler error output for details.

Bliss,
--G

       Priority: Major  (was: Minor)
    Environment: 
windows 7 64-bit, oracle JDK 8 64-bit, and oracle JDK 7 64 bit.
and
windows xp 32bit, oracle JDK 8 32bit;

  was:
windows 7 64-bit, oracle JDK 8 64-bit; 
and
windows xp 32bit, oracle JDK 8 32bit;


> Trunk fails to compile with Java 1.8
> ------------------------------------
>
>                 Key: OFBIZ-5835
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-5835
>             Project: OFBiz
>          Issue Type: Improvement
>    Affects Versions: Trunk
>         Environment: windows 7 64-bit, oracle JDK 8 64-bit, and oracle JDK 7 
> 64 bit.
> and
> windows xp 32bit, oracle JDK 8 32bit;
>            Reporter: Gary Shi
>              Labels: build, patch
>
> Just tried JDK 7; but got the same errors:
> ------------------------
> I replaced 1.6 with 1.8 and javac16 with javac18 in some xml files; but still 
> got the same warning and error messsages as follows:
>  
>   [javac18] Compiling 11 source files to C:\Users\gys\Downloads\apache-ofbiz
> -12.04.05 (1)\apache-ofbiz-12.04.05\applications\party\build\classes
>   [javac18] warning: [options] bootstrap class path not set in conjunction 
> with
> -source 1.6
>   [javac18] C:\Users\gys\Downloads\apache-ofbiz-12.04.05 (1)\apache-ofbiz-12
> .04.05\applications\party\src\org\ofbiz\party\communication\CommunicationEventSe
> rvices.java:139: error: cannot access DataResourceWorkerInterface
>   [javac18]                     ByteBuffer dataContent = 
> DataResourceWorker.getC
> ontentAsByteBuffer(delegator, dataResource.getString("dataResourceId"), null, 
> nu
> ll, locale, null);
>   [javac18]                                                                ^
>   [javac18]   class file for org.ofbiz.widget.DataResourceWorkerInterface not 
> fo
> und
>   [javac18] C:\Users\gys\Downloads\apache-ofbiz-12.04.05 (1)\apache-ofbiz-12
> .04.05\applications\party\src\org\ofbiz\party\contact\ContactMechServices.java:1
> 056: warning: [deprecation] getDigestHash(String,String) in HashCrypt has 
> been d
> eprecated
>   [javac18]                 verifyHash = 
> HashCrypt.getDigestHash(Long.toString(r
> andom), "MD5");
>   [javac18]                                       ^
>   [javac18] C:\Users\gys\Downloads\apache-ofbiz-12.04.05 (1)\apache-ofbiz-12
> .04.05\applications\party\src\org\ofbiz\party\content\PartyContentWrapper.java:2
> 29: error: cannot access ContentWorkerInterface
>   [javac18]             ContentWorker.renderContentAsText(dispatcher, 
> delegator,
>  partyContent.getString("contentId"), outWriter, inContext, locale, 
> mimeTypeId,
> null, null, false);
>   [javac18]                          ^
>   [javac18]   class file for org.ofbiz.widget.ContentWorkerInterface not found
>   [javac18] 2 errors
>   [javac18] 2 warnings
> BUILD FAILED
> C:\Users\gys\Downloads\apache-ofbiz-12.04.05 (1)\apache-ofbiz-12.04.05\build
> .xml:217: The following error occurred while executing this line:
> C:\Users\gys\Downloads\apache-ofbiz-12.04.05 (1)\apache-ofbiz-12.04.05\appli
> cations\build.xml:67: The following error occurred while executing this line:
> C:\Users\gys\Downloads\apache-ofbiz-12.04.05 (1)\apache-ofbiz-12.04.05\macro
> s.xml:39: The following error occurred while executing this line:
> C:\Users\gys\Downloads\apache-ofbiz-12.04.05 (1)\apache-ofbiz-12.04.05\commo
> n.xml:91: Compile failed; see the compiler error output for details.
> Bliss,
> --G



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to