Ad
  • Custom User Avatar

    I get the same error. Has anyone solved this kata recently? EDIT: it is still solvable.

  • Custom User Avatar

    Ah, good point. Tests never caught it.

  • Custom User Avatar

    Hi Guys, There are about 4 kata's with java that require us to use reflection/javassist. Since im studying the subject recently I tried all of them (Unlocked one solution to be sure). So I have solutions that compile and pass the tests from codewars in my local eclipse IDE with no problems, yet each one of them fail with very similar (if not exactly the same) problem (I think katas are Hack-22, Bagel, and Psychic). I tried the unlocked solutions (that already passed) and most of them are failing the tests. I've opened an issue (https://github.com/Codewars/codewars.com/issues/1533) but basically got f.off response from them (maybe I wasn't clear enough about underlying issue, hoped for them to look into it). So in conclusion they must have changed the way java is being handled on the codewars (rendering them 4 kata's kinda useless, though I think reflection solutions might work for them ,still working on it in my free time. If any of ye guys would like to open a new issue or comment on the one I posted (I'll follow up then) maybe someone there will exercise a little bit will to fix it, as in the moment it prevents us from completing them ang getting the points, also renders plenty of solutions unusable :/ It might be worth mentioning that this error is thrown even on a "plain" default kata's setup.

  • Custom User Avatar

    I'm getting the same warning while preparing the sample-tests, i.e. without running any of my code. Is this Kata currently broken?

        /Flux.java:1: warning: Can't initialize javac processor due to (most likely) a class loader problem: java.lang.NoClassDefFoundError: com/sun/tools/javac/processing/JavacProcessingEnvironment
    public interface Flux {Integer getNone();void setNone(Integer i);}
           ^
      	at lombok.javac.apt.LombokProcessor.init(LombokProcessor.java:83)
      	at lombok.core.AnnotationProcessor$JavacDescriptor.want(AnnotationProcessor.java:87)
      	at lombok.core.AnnotationProcessor.init(AnnotationProcessor.java:140)
      	at lombok.launch.AnnotationProcessorHider$AnnotationProcessor.init(AnnotationProcessor.java:69)
      	at com.sun.tools.javac.processing.JavacProcessingEnvironment$ProcessorState.<init>(JavacProcessingEnvironment.java:500)
      	at com.sun.tools.javac.processing.JavacProcessingEnvironment$DiscoveredProcessors$ProcessorStateIterator.next(JavacProcessingEnvironment.java:597)
      	at com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:690)
      	at com.sun.tools.javac.processing.JavacProcessingEnvironment.access$1800(JavacProcessingEnvironment.java:91)
      	at com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1035)
      	at com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1176)
      	at com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1167)
      	at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:853)
      	at com.sun.tools.javac.main.Main.compile(Main.java:521)
      	at com.sun.tools.javac.api.JavacTaskImpl.doCall(JavacTaskImpl.java:129)
      	at com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:138)
      	at ClassHelper.createInterface(ClassHelper.java:39)
      	at InterfacingTest.randomInterface(InterfacingTest.java:95)
      	at InterfacingTest.prepare(InterfacingTest.java:78)
        ...
    

    The warning vanishes if I manually load tools.jar at the very beginning of prepare().