-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #2612 NPE when trying to import classes #86
Conversation
This looks good to me. It is a simple change and I think we can safely accept it.... |
Although this does resolve the issue I think @jeff5 may be able to propose a better fix. Discussion on http://bugs.jython.org/issue2612 |
This was a regresion caused when trying to deal with non-ascii paths in the preparation of a log message. Thanks to James Mudd for diagnosing this. Also #86.
Looking at what this message would have been about (formatting of which produces the NPE), the foolproof choice is to get the string from the directory object itself. Fixed at https://hg.python.org/jython/rev/39b0bd0dcd01, I claim. Just for now, I'm resisting the temptation to rationalise the surrounding code. :) |
Did this issue return? My compiled class comes from scala source, instead of java-source in case that somehow matters.
|
Not returned, just not fixed in 2.7.1 which you are clearly using. Despite the best intentions, we have not released a 2.7.2 yet. You could wait or build your own snapshot JAR. |
@jeff5 Ah, okay. Thanks. I can wait -^_^-
Then, move away from that directory such that relative-dir testutils/JMHTTPClient.class does not exist. (or rename it or something, so only the jar can resolve testutils/JMHTTPClient)
Then.....
|
This was a regresion caused when trying to deal with non-ascii paths in the preparation of a log message. Thanks to James Mudd for diagnosing this. Also jython/frozen-mirror#86.
This was a regresion caused when trying to deal with non-ascii paths in the preparation of a log message. Thanks to James Mudd for diagnosing this. Also jython/frozen-mirror#86.
No description provided.