FeitianSmartcardReader / eid-applet

Automatically exported from code.google.com/p/eid-applet
Other
1 stars 0 forks source link

Compilation on java 1.7 #82

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use jdk1.7.0_09 to build the applet
2. testHandleMessageCorruptIntegritySignature fails
3.

What is the expected output? What do you see instead?
Expected: Test would pass
Instead: Test fails

What version of the product are you using? On what operating system?
Window 7 32 bit

Please provide any additional information below.
At the moment only jdk 1.6 is supported so this is more an informational issue.

In the new JDK 1.7 the signature.Verify() function throws an exception when the 
signature length is not OK. In JDK 1.6 it would return false if this was the 
case (not an exception).

Therefor the test testHandleMessageCorruptIntegritySignature will fail because 
the following assertion fails in JDK 1.7:

assertEquals("remote-address",AuditTestService.getAuditIntegrityRemoteAddress())
;

The remote address is not set correctly due to the exception ending the code 
prematurely.

When future JDK versions are supported the test code must be changed.

Original issue reported on code.google.com by kristof....@gmail.com on 6 Nov 2012 at 1:40

GoogleCodeExporter commented 9 years ago
http://code.google.com/p/eid-applet/source/detail?r=731

Original comment by frank.co...@gmail.com on 30 Nov 2012 at 2:54