Mantis Bugtracker

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003362 [Hessian] major always 02-26-09 21:05 06-02-09 11:59
Reporter Peter Dettman View Status public  
Assigned To ferg
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 4.0.0 Product Version
  Product Build
Summary 0003362: Latest refactoring involving WriteReplaceSerializer breaks simple test case
Description Since I was looking at a few hessian-related things this week, I happened to be testing with the latest SVN code. I have attached a junit test case that is based directly on my application code. It works fine as of r5239 (and previous Hessian releases), but breaks after the subsequent refactoring r5242/5243 involving WriteReplaceSerializer class. Exception trace provided below.
Steps To Reproduce
Additional Information java.lang.RuntimeException: java.lang.IllegalAccessException: Class can not access a member of class hessiantest.TestMessage with modifiers "private"
    at hessiantest.WriteReplaceTest.basicRoundtrip(
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(
    at java.lang.reflect.Method.invoke(
    at org.junit.internal.runners.TestMethodRunner.executeMethodBody(
    at org.junit.internal.runners.TestMethodRunner.runUnprotected(
    at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(
    at org.junit.internal.runners.TestMethodRunner.runMethod(
    at org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(
    at org.junit.internal.runners.TestClassRunner$1.runUnprotected(
    at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(
Caused by: java.lang.IllegalAccessException: Class can not access a member of class hessiantest.TestMessage with modifiers "private"
    at sun.reflect.Reflection.ensureMemberAccess(
    at java.lang.reflect.Method.invoke(
    ... 22 more

Attached Files  hessiantest.jar [^] (1,346 bytes) 02-26-09 21:05
 hessian_0003362.patch [^] (441 bytes) 02-27-09 02:24

- Relationships

- Notes
Peter Dettman
02-27-09 02:14

The 'private' member that cannot be accessed is the writeReplace method itself, it seems.
Peter Dettman
02-27-09 02:25

Patch attached
Peter Dettman
05-09-09 02:09

This was fixed at r5312 of WriteReplaceSerializer.

- Issue History
Date Modified Username Field Change
02-26-09 21:05 Peter Dettman New Issue
02-26-09 21:05 Peter Dettman File Added: hessiantest.jar
02-27-09 02:14 Peter Dettman Note Added: 0003850
02-27-09 02:24 Peter Dettman File Added: hessian_0003362.patch
02-27-09 02:25 Peter Dettman Note Added: 0003851
05-09-09 02:09 Peter Dettman Note Added: 0003997
06-02-09 11:59 ferg Assigned To  => ferg
06-02-09 11:59 ferg Status new => closed
06-02-09 11:59 ferg Resolution open => fixed
06-02-09 11:59 ferg Fixed in Version  => 4.0.0

Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
35 total queries executed.
28 unique queries executed.
Powered by Mantis Bugtracker