Details
Description
Given a class is parsed.
Given that class has a constructor.
Given the constructor has parameters.
Given some parameters have an annotation.
When parsing the file.
Then a NPE exception is thrown.
NPE stack is
Exception in thread "main" java.lang.NullPointerException at com.thoughtworks.qdox.model.impl.DefaultJavaParameter.getParentClass(DefaultJavaParameter.java:91) at com.thoughtworks.qdox.builder.impl.DefaultJavaAnnotationAssembler.createType(DefaultJavaAnnotationAssembler.java:145) at com.thoughtworks.qdox.builder.impl.DefaultJavaAnnotationAssembler.assemble(DefaultJavaAnnotationAssembler.java:123) at com.thoughtworks.qdox.builder.impl.ModelBuilder.setAnnotations(ModelBuilder.java:478) at com.thoughtworks.qdox.builder.impl.ModelBuilder.addParameter(ModelBuilder.java:465) at com.thoughtworks.qdox.parser.impl.Parser.yyparse(Parser.java:2312) at com.thoughtworks.qdox.parser.impl.Parser.parse(Parser.java:1575) at com.thoughtworks.qdox.library.SourceLibrary.parse(SourceLibrary.java:205) at com.thoughtworks.qdox.library.SourceLibrary.parse(SourceLibrary.java:181) at com.thoughtworks.qdox.library.SourceLibrary.addSource(SourceLibrary.java:138) at com.thoughtworks.qdox.library.SortedClassLibraryBuilder.addSource(SortedClassLibraryBuilder.java:173) at com.thoughtworks.qdox.JavaProjectBuilder.addSource(JavaProjectBuilder.java:150)
Activity
Robert Scholte
made changes -
Field | Original Value | New Value |
---|---|---|
Description |
Given a class is parsed.
Given that class has a constructor. Given the constructor has parameters. Given some parameters have an annotation. When parsing the file. Then a NPE exception is thrown. NPE stack is Exception in thread "main" java.lang.NullPointerException at com.thoughtworks.qdox.model.impl.DefaultJavaParameter.getParentClass(DefaultJavaParameter.java:91) at com.thoughtworks.qdox.builder.impl.DefaultJavaAnnotationAssembler.createType(DefaultJavaAnnotationAssembler.java:145) at com.thoughtworks.qdox.builder.impl.DefaultJavaAnnotationAssembler.assemble(DefaultJavaAnnotationAssembler.java:123) at com.thoughtworks.qdox.builder.impl.ModelBuilder.setAnnotations(ModelBuilder.java:478) at com.thoughtworks.qdox.builder.impl.ModelBuilder.addParameter(ModelBuilder.java:465) at com.thoughtworks.qdox.parser.impl.Parser.yyparse(Parser.java:2312) at com.thoughtworks.qdox.parser.impl.Parser.parse(Parser.java:1575) at com.thoughtworks.qdox.library.SourceLibrary.parse(SourceLibrary.java:205) at com.thoughtworks.qdox.library.SourceLibrary.parse(SourceLibrary.java:181) at com.thoughtworks.qdox.library.SourceLibrary.addSource(SourceLibrary.java:138) at com.thoughtworks.qdox.library.SortedClassLibraryBuilder.addSource(SortedClassLibraryBuilder.java:173) at com.thoughtworks.qdox.JavaProjectBuilder.addSource(JavaProjectBuilder.java:150) |
Given a class is parsed.
Given that class has a constructor. Given the constructor has parameters. Given some parameters have an annotation. When parsing the file. Then a NPE exception is thrown. NPE stack is {noformat} Exception in thread "main" java.lang.NullPointerException at com.thoughtworks.qdox.model.impl.DefaultJavaParameter.getParentClass(DefaultJavaParameter.java:91) at com.thoughtworks.qdox.builder.impl.DefaultJavaAnnotationAssembler.createType(DefaultJavaAnnotationAssembler.java:145) at com.thoughtworks.qdox.builder.impl.DefaultJavaAnnotationAssembler.assemble(DefaultJavaAnnotationAssembler.java:123) at com.thoughtworks.qdox.builder.impl.ModelBuilder.setAnnotations(ModelBuilder.java:478) at com.thoughtworks.qdox.builder.impl.ModelBuilder.addParameter(ModelBuilder.java:465) at com.thoughtworks.qdox.parser.impl.Parser.yyparse(Parser.java:2312) at com.thoughtworks.qdox.parser.impl.Parser.parse(Parser.java:1575) at com.thoughtworks.qdox.library.SourceLibrary.parse(SourceLibrary.java:205) at com.thoughtworks.qdox.library.SourceLibrary.parse(SourceLibrary.java:181) at com.thoughtworks.qdox.library.SourceLibrary.addSource(SourceLibrary.java:138) at com.thoughtworks.qdox.library.SortedClassLibraryBuilder.addSource(SortedClassLibraryBuilder.java:173) at com.thoughtworks.qdox.JavaProjectBuilder.addSource(JavaProjectBuilder.java:150) {noformat} |
Robert Scholte
made changes -
Resolution | Fixed [ 1 ] | |
Assignee | Robert Scholte [ rfscholte ] | |
Status | Open [ 1 ] | Resolved [ 5 ] |
The above, makes classes described by the Gerkin statement be un-parseable.