Comments (3)
Hmm. Maybe I'm wrong about Octave not getting interface implementation right:
>> str = javaObject('java.lang.String', 'foobar')
str =
<Java object: java.lang.String>
>> isa(str, 'java.lang.String')
ans = 1
>> isa(str, 'java.lang.Object')
ans = 1
>> isa(str, 'java.lang.CharSequence')
ans = 1
>>
Need to look into my own code more deeply. Maybe the interface structure has changed with the newer version of SLF4M or log4j.
from octave-slf4o.
Aha. Looks like it doesn't properly detect interfaces inherited from a superclass. I'm not crazy.
debug> jLogger
jLogger =
<Java object: org.slf4j.impl.Log4jLoggerAdapter>
debug> klass = jLogger.getClass;
debug> klass.getName
ans = org.slf4j.impl.Log4jLoggerAdapter
debug> superklass1 = klass.getSuperclass;
debug> superklass1.getName
ans = org.slf4j.helpers.MarkerIgnoringBase
debug> superklass2 = superklass1.getSuperclass;
debug> superklass2.getName
ans = org.slf4j.helpers.NamedLoggerBase
debug> ifcs2 = superklass2.getInterfaces;
debug> ifcs2(1).getName
ans = org.slf4j.Logger
debug> isa(jLogger, 'org.slf4j.Logger')
ans = 0
debug>
from octave-slf4o.
Bummer. This doesn't work either.
>> wantKlass = javaMethod('forName', 'java.lang.Class', 'org.slf4j.Logger')
error: [java] java.lang.ClassNotFoundException: org.slf4j.Logger
from octave-slf4o.
Related Issues (16)
- How do I reference Java constants? HOT 2
- Convert code to GNU Octave code style HOT 1
- Octave crashes when trying to launch the configurator GUI HOT 1
- Add "Introduction" section to manual HOT 1
- "## -*- texinfo -*-" is ignored if it is the first line in file HOT 1
- Have Makefile build dist from current workspace state instead of HEAD commit
- Remove the bogus dispstrlib loading code from initSLF4O HOT 1
- Unify error identifiers HOT 1
- We're disabling the shadowed-function warning HOT 1
- Finish conversion to Octave `pkg` package format HOT 1
- logger.version is broken HOT 1
- "class not found" warning upon pkg installation HOT 1
- Warning about Mcode-examples upon load HOT 1
- pkg installation not working in Octave.app HOT 1
- Get documentation into Octave/QHelp format HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from octave-slf4o.