roaster icon indicating copy to clipboard operation
roaster copied to clipboard

A Java Parser library that allows easy parsing and formatting of Java source files

Results 16 roaster issues
Sort by recently updated
recently updated
newest added

when looking for super type of a type we try to resolve the canonical name of that type. the issue is that we are trying to resolve wildcard imports before...

Error adding a annotation value to @Generated ``` java.lang.ClassCastException: class org.eclipse.jdt.core.dom.SingleMemberAnnotation cannot be cast to class org.eclipse.jdt.core.dom.NormalAnnotation (org.eclipse.jdt.core.dom.SingleMemberAnnotation and org.eclipse.jdt.core.dom.NormalAnnotation are in unnamed module of loader 'app') at org.jboss.forge.roaster.model.impl.AnnotationImpl.setAnnotationValue(AnnotationImpl.java:615) at...

enhancement

You should not be able to pass in invalid code and get obscure errors like "index out of range" exceptions. I found one place for this but the code should...

``` java.lang.IllegalArgumentException at org.jboss.forge.roaster._shade.org.eclipse.jdt.core.dom.AST.newName(AST.java:2420) at org.jboss.forge.roaster.model.impl.JavaSourceImpl.setPackage(JavaSourceImpl.java:625) at org.jboss.forge.roaster.model.impl.JavaSourceImpl.setPackage(JavaSourceImpl.java:53) ``` setPackage should do a notBlank check on user input and throw contextual exception (same for all user input methods)

You should not be able to pass in invalid code and get obscure errors like "index out of range" exceptions. I found one place for this but the code should...