Clojure

reflection warning from ns

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: Release 1.1
  • Component/s: None
  • Labels:
    None
  • Approval:
    Ok

Description

This happens in the master branch, but not in 1.0. Reported on http://groups.google.com/group/clojure/browse_thread/thread/3f7989b0297e0a59/59c94c1b161a6693

user=> (set! warn-on-reflection true)
true
user=> (ns foo.bar)
Reflection warning, NO_SOURCE_PATH:2 - reference to field getClass can't be resolved.
Reflection warning, NO_SOURCE_PATH:2 - reference to field getClassLoader can't be resolved.
nil
foo.bar=>

Activity

Hide
Assembla Importer added a comment -

mikehinchey said: [file:aKgc0WHx4r3Rt1eJe5aVNr]: fix reflection warnings

Show
Assembla Importer added a comment - mikehinchey said: [file:aKgc0WHx4r3Rt1eJe5aVNr]: fix reflection warnings
Hide
Assembla Importer added a comment -

mikehinchey said: Attachement fixes the reflection warnings for ns and others in clojure that are easy, which always resolve to a single class. I didn't try to fix the warnings which can resolve to more than one class or method.

Show
Assembla Importer added a comment - mikehinchey said: Attachement fixes the reflection warnings for ns and others in clojure that are easy, which always resolve to a single class. I didn't try to fix the warnings which can resolve to more than one class or method.
Hide
Assembla Importer added a comment -

chouser@n01se.net said: Without this patch, the reflection generated by 'ns' breaks unsigned applets. The other changes look good too. The build.xml patch doesn't apply anymore – I'll attach a new version that applies cleanly.

Show
Assembla Importer added a comment - chouser@n01se.net said: Without this patch, the reflection generated by 'ns' breaks unsigned applets. The other changes look good too. The build.xml patch doesn't apply anymore – I'll attach a new version that applies cleanly.
Hide
Assembla Importer added a comment -

chouser@n01se.net said: [file:cfBliAJGur3RGweJe5afGb]: rebased from original

Show
Assembla Importer added a comment - chouser@n01se.net said: [file:cfBliAJGur3RGweJe5afGb]: rebased from original
Hide
Assembla Importer added a comment -

mikehinchey said: (In [[r:040f083efc16dd830a4508a35a04465e3e5677d3]]) fix #171: ns reflection warnings, and others that are easy

Signed-off-by: Chouser <chouser@n01se.net>

Branch: master

Show
Assembla Importer added a comment - mikehinchey said: (In [[r:040f083efc16dd830a4508a35a04465e3e5677d3]]) fix #171: ns reflection warnings, and others that are easy Signed-off-by: Chouser <chouser@n01se.net> Branch: master

People

  • Assignee:
    Unassigned
    Reporter:
    Anonymous
Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: