This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

libgcj/1516: Method.invoke won't accept boolean parameters



>Number:         1516
>Category:       libgcj
>Synopsis:       Method.invoke won't accept boolean parameters
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 27 08:56:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     jeff.sturm@commerceone.com
>Release:        HEAD
>Organization:
>Environment:
i686-pc-linux-gnu
>Description:
Method.invoke throws java.lang.IllegalArgumentException for
methods with boolean (primitive) types in their signatures.
>How-To-Repeat:
Run the attached test case.  It should print `true' and
`false', not throw an exception.
>Fix:
Add boolean rules to can_widen.  Alternatively, rewrite
can_widen to use an array of bitmaps or similar, since the
existing rules are not too pretty or efficient.
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="BTest.java"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="BTest.java"

aW1wb3J0IGphdmEubGFuZy5yZWZsZWN0Lk1ldGhvZDsKCnB1YmxpYyBjbGFzcyBCVGVzdCB7Cglw
dWJsaWMgdm9pZCB0ZXN0KCkgewoJCXRyeSB7CgkJCU1ldGhvZCBtID0gZ2V0Q2xhc3MoKS5nZXRE
ZWNsYXJlZE1ldGhvZCgic2V0T24iLAoJCQkJIG5ldyBDbGFzc1tdIHtCb29sZWFuLlRZUEV9KTsK
CQkJbS5pbnZva2UodGhpcywgbmV3IE9iamVjdFtdIHtCb29sZWFuLkZBTFNFfSk7CgkJCW0uaW52
b2tlKHRoaXMsIG5ldyBPYmplY3RbXSB7Qm9vbGVhbi5UUlVFfSk7CgkJfSBjYXRjaCAoVGhyb3dh
YmxlIHQpIHsKCQkJdC5wcmludFN0YWNrVHJhY2UoKTsKCQl9Cgl9CgoJcHVibGljIHZvaWQgc2V0
T24oYm9vbGVhbiBiKSB7CgkJU3lzdGVtLm91dC5wcmludGxuKCJzZXRPbiAiICsgYik7Cgl9CgoJ
cHVibGljIHN0YXRpYyB2b2lkIG1haW4oU3RyaW5nW10gYXJncykgewoJCShuZXcgQlRlc3QoKSku
dGVzdCgpOwoJfQp9Cg==

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]