commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Bourg (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (BCEL-5) JavaClass.instanceOf(JavaClass) broken
Date Thu, 24 Apr 2014 13:20:31 GMT

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

Emmanuel Bourg updated BCEL-5:
------------------------------

             Priority: Major
          Environment:     (was: Operating System: Linux
Platform: All)
    Affects Version/s:     (was: unspecified)
                       5.0
        Fix Version/s: 5.1
             Priority:   (was: P3)
             Severity:   (was: major)

This was fixed in r152813 on 2002-07-06 by mdahm


> JavaClass.instanceOf(JavaClass) broken
> --------------------------------------
>
>                 Key: BCEL-5
>                 URL: https://issues.apache.org/jira/browse/BCEL-5
>             Project: Commons BCEL
>          Issue Type: Bug
>          Components: Main
>    Affects Versions: 5.0
>            Reporter: Enver Haase
>            Assignee: Apache Commons Developers
>             Fix For: 5.1
>
>
> Consider:
> -------
> import org.apache.bcel.*;
> import org.apache.bcel.classfile.*;
> public class Test{
> public static void main(String[] args){
>  JavaClass a = Repository.lookupClass("Test");
>  System.out.println(a.instanceOf(Repository.lookupClass("java.lang.Object")));
> }
> }
> -------
> This fine program tells us "false", i.e. "Test" is not derived from
> "java.lang.Object". *sigh*



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message