Integration and Testing

Authorize.Net API questions and help with your payment integration.

Reply
Member
Posts: 1
Registered: ‎09-21-2011

java warning/error

Not sure if this is the correct forum to be posting this??

 

In reference to the following code:

 

Result<Transaction> result = (Result<Transaction>)merchant

.postTransaction(authCaptureTransaction);

 

 

I'm getting this warning in my rational ide:

 

Type safety: The cast from Result<capture-of ?> to Result<Transaction> is actually checking

against the erased type Result

 

and this error in my websphere server...

 

JSPG0049E: /test.jsp failed to compile :
JSPG0091E: An error occurred at line: 27 in the file: /test.jsp
JSPG0093E: Generated servlet error from file: /test.jsp
C:\Program Files\IBM\SDP70\runtimes\base_v6\profiles\default\temp\D9032001Node01\server1\AuthorizeNetEAR\AuthorizeNet.war\_test.java:99: illegal start of expression
          Result<Transaction> result = (Result<Transaction>)merchant
                                                           ^
JSPG0091E: An error occurred at line: 28 in the file: /test.jsp
JSPG0093E: Generated servlet error from file: /test.jsp
C:\Program Files\IBM\SDP70\runtimes\base_v6\profiles\default\temp\D9032001Node01\server1\AuthorizeNetEAR\AuthorizeNet.war\_test.java:100: ')' expected
              .postTransaction(authCaptureTransaction);

 

Does anyone have any insights on this?

 

Thanks,

Dwight

Administrator
Posts: 591
Registered: ‎08-21-2009

Re: java warning/error

Can you tell us where that code is located?  Is it somewhere in the SDK download package, or is it something you wrote yourself?  I don't seem to be able to find that line in the download, but it's certainly possible that I'm overlooking it.